Hi, I tried a sample code included in the SDK, namly Managed Client Event and I get unhandled System.AccessViolationException excpetion after I quit the sim. It comes from the message loop. It looks like the simconnect obejct still receives messages after it has been disposed and zeroed in closeConnection() dispite of a "is null" test. This happens not only for this code example.
regards
ROB
Unhandled exception OnRecvQuit in sample code from SDK
- Rob McCarthy
- Lockheed Martin
- Posts: 3703
- Joined: Wed Aug 24, 2011 1:37 pm
Re: Unhandled exception OnRecvQuit in sample code from SDK
Rob,
Thanks for posting this. This appears to be isolated to when Prepar3D is shut down before the application. We can look into improving the shut down behavior for managed SimConnect applications in a future update.
Regards,
Rob McCarthy
Thanks for posting this. This appears to be isolated to when Prepar3D is shut down before the application. We can look into improving the shut down behavior for managed SimConnect applications in a future update.
Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead
Prepar3D® Core Lead
Re: Unhandled exception OnRecvQuit in sample code from SDK
Yes, exactly when the sim exists before the application. Thanks!
regards
ROB
regards
ROB