Delphi Posted March 17, 2019 Report Share Posted March 17, 2019 Hi Paul, I get a exception with the folloeing code: Dim myAirports As HashSet(Of String) = New HashSet(Of String)(New String() {"LOWS", "ESGG"}) FSUIPCConnection.AirportsDatabase.Load(myAirports) The exception is "System.Collections.Generic.KeyNotFoundException" FSUIPCConnection.AirportsDatabase.Load() works without exception and I can play with the data of LOWS, ESGG, and all others. Could you please help. Kind regards, Ruediger Link to comment Share on other sites More sharing options...
Paul Henty Posted March 17, 2019 Report Share Posted March 17, 2019 Hi Ruediger, Your code works okay for me. Make sure you've got the latest DLL (3.1.11). Does it work using different airports in the hashset? or does it break with any? Paul Link to comment Share on other sites More sharing options...
Delphi Posted March 19, 2019 Author Report Share Posted March 19, 2019 Hi Paul, I updated to 3.1.11 (from 3.0.3.295). Still get the exception. Same with other airports. The idea was to load only the data of the origin and destination airport according to the flightplan, not the complete database. However, I'm fine with loading the complete database. Should not make a noticable delay. Ruediger Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now