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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

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.