Unhandled exception OnRecvQuit in sample code from SDK

Locked
ROB - A2A
Posts: 6
Joined: Thu Apr 13, 2017 12:52 pm

Unhandled exception OnRecvQuit in sample code from SDK

Post by ROB - A2A »

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
User avatar
Rob McCarthy
Lockheed Martin
Posts: 3061
Joined: Wed Aug 24, 2011 1:37 pm

Re: Unhandled exception OnRecvQuit in sample code from SDK

Post by Rob McCarthy »

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
Rob McCarthy
Prepar3D® Core Lead
ROB - A2A
Posts: 6
Joined: Thu Apr 13, 2017 12:52 pm

Re: Unhandled exception OnRecvQuit in sample code from SDK

Post by ROB - A2A »

Yes, exactly when the sim exists before the application. Thanks!

regards
ROB
Locked