Jump to content
The simFlight Network Forums
Delphi

AirportsDatabase.Load

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.