• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Multiple connections and UNRECOGNIZED_ID

Messages
29
Country
sweden
Hi!

I'm having problems when connecting multiple instances of SimConnect clients to FSX. I have made an application (C#) which contains three forms that are to show up at run-time. Each form creates a SimConnect-connection and subscribes to the simevents that they need.

If I just show one form at the time, it works just fine. But when I show more than one, the first one showed stoppes getting data from SimConnect, and the other form captures the OnRecvException for every time it recieves data. The dwException is set to 3, which translates to UNRECOGNIZED_ID in the exception enum.

I guess that this exception is the key to the problem with multiple instances as well, but I just can't figure out which ID is unrecognized?

Any ideas?

Thanks!
 
I don't know if that's doable or not with the original SDK and the managed wrapper around the native client library. You should be able to do that with my replacement managed SimConnect client SDK (see blog link in signature) - I have a Silverlight client that creates 4 SimConnect connections (to work around the 1000 outstanding requests per client limitation) with no problems.
 
Thanks for that suggestion beatle.

I've now tried the same thing using your SDK, but some new problems then came up. I looked in the WinForms-example, and did the same way for subscribing to the user aircrafts data updates.

The this is that if I use periods SIM_FRAME or VISUAL_FRAME like in your example, the data seems to lag behind a bit. If I log the data that is recieved in for ex. OnRecvSimobjectData, and then pause FSX, this event is still called, sometimes for more than 10 seconds after I've pressed pause.

This makes the presentation look like a replay or something like that.
I've never experienced this using the native SimConnect SDK.
 
Sorry, was a bit to quick on my reply there.

I just tried the same thing in the native SimConnect SDK, and there was the same problem when I subscribe to user aircraft data. It seems like I will have to call a request for data in a loop instead to get the data "live".
 
I guess I will have to switch to FSUIPC for this project, doesn't seem to able to get "live" data from SimConnect.
 
Back
Top