Unhandled exception OnRecvQuit in sample code from SDK

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

Unhandled exception OnRecvQuit in sample code from SDK

Postby ROB - A2A » Mon Aug 14, 2017 10:36 am

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: 948
Joined: Wed Aug 24, 2011 1:37 pm

Re: Unhandled exception OnRecvQuit in sample code from SDK

Postby Rob McCarthy » Mon Aug 14, 2017 2:40 pm

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: 5
Joined: Thu Apr 13, 2017 12:52 pm

Re: Unhandled exception OnRecvQuit in sample code from SDK

Postby ROB - A2A » Mon Aug 14, 2017 3:21 pm

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

regards
ROB


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 1 guest