Jump to content
The simFlight Network Forums

using airport database features from another class


Jason Fayre
 Share

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

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...
 Share

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