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

A question

Messages
2,168
Country
us-ohio
Is it normal for a gauge using SimConnect to have it's handle to SimConnect become invalid after a dialog (such as Options) has been opened and closed by the user?

I asked this over in L-M's Prepar3D SimConnect forum and the only sound are the crickets.
 
Ed,
In 4.2, with a Mickey Mouse test gauge, I'm not seeing this result.
 
I'm in 32bit-land with this for now... I had an aircraft loaded that had a SimConnect connection for throttles and some other stuff like keyboard entry... I went into the Options/Controls dialog... and then closed the dialog and then I lost the ability to type in entries into the FMS and it no longer worked. Very weird and makes no sense.
 
You may have had your joystick/keyboard masking/hooks overridden by another module? I'm not sure, but I think that masking in simconnect goes to the last client to request it... So it could be that another module is masking those inputs when the sim returns from dialog.
 
I wish it were that simple... the value of hSimConnect goes to NULL (0). I'm trying to determine if this is expected behavior or not.
 
I just figured out what triggers it, but I can't fathom a reason why.
The sim loads into the VC... everything works. I flipped over to a 2D panel that I use for testing... and it wiped the SimConnect. I don't get it.
 
I have one in PANEL_SERVICE_DISCONNECT and one for if I get the QUIT message from SimConnect itself.
 
I added logic around the one in the PANEL_SERVICE_DISCONNECT and that took care of it. Thanks for the suggestion Mr. Dawson. :)
 
Why don't you have it in the module_deinit instead of the gauge callback?
 
Back
Top