Jump to content
The simFlight Network Forums

using airport database features from another class


Jason Fayre

Recommended Posts

Hi Paul,

I'm trying to use the DLL airport facilities from another class and am running into an error.

The connection to FSUIPC happens in my main form class. I'm also loading the airport database from that class.

I have another class that needs to be able to query the info in the airport database. If I try to access the FSUIPCConnection.AirportDatabase features from the other class, I get the following exception:

An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll
The given key was not present in the dictionary.

I get this exception as well if I try to load the database from the other class, rather than loading it in the form class.

I am able to use other dll functions from my other class such as processing offsets, querying fuel tanks, etc. It's just the airport database that has me stuck.

Any thoughts?

 

 


 

 

Link to comment
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
×
×
  • 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.