Jump to content
The simFlight Network Forums

WideFS reporting FS disconnect


Recommended Posts

Hi Pete,

I'm working on some external software using FSUIPC to connect to MSFS. In this project I need to know if FS is still running or if it died (or was closed by the user). When the program directly connects to FS, I get that information upon receiving an error when using FSUIPC_Read & Co.. However, using WideFS, when MSFS dies, I simply get erroneous values via FSUIPC_Read/FSUIPC_Process (mostly zeroes); but no error message, as long as WideClient is still running. Is there any way for my program to find out if MSFS died in such a case?

Regards

Marko.

Link to comment
Share on other sites

Is there any way for my program to find out if MSFS died in such a case?

The best way in both cases is to monitor the Activity counter at offset 0x337E, which was invented for just this purpose. Note that you should probably also check 0x3364/3365 to see if there's a good reason for 337E to remain static for any time. In the end a timeout would be the last check assuming 3364/5 remained non-zero with 337E unchanging. When FS is in a modal dialogue nothing else in the process is running so you have to allow many seconds sometimes for user activity in menus.

Regards

Pete

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.