Page 1 of 1

Unhandled exception OnRecvQuit in sample code from SDK

Posted: Mon Aug 14, 2017 10:36 am
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

Re: Unhandled exception OnRecvQuit in sample code from SDK

Posted: Mon Aug 14, 2017 2:40 pm
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

Re: Unhandled exception OnRecvQuit in sample code from SDK

Posted: Mon Aug 14, 2017 3:21 pm
by ROB - A2A
Yes, exactly when the sim exists before the application. Thanks!

regards
ROB