Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

 

Posted

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

 

Posted

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

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
×
×
  • 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.