P3D crashes on exit with DLL client
I'm porting my addon from FSX to P3D, and notice that P3D crashes on exit when running my addon, which is comprised of both an EXE and a DLL. After some investigation I have determined that the DLLStop function is not being called at program shutdown, and so my app is not able to close the handle to SimConnect. The problem is not specific to my application ... I am able to reproduce the problem using the sample DLL client found here : http://archive.msdn.microsoft.com/ESPdllSimConnect. The problem manifests no matter what version of SimConnect I build against. Looks like a P3D bug to me.
Russel Dirks
FS Force
Win10 64Bit, i5 4670K 3.4GHZ, Radeon RX 580
FS Force
Win10 64Bit, i5 4670K 3.4GHZ, Radeon RX 580
Russ
Check out http://www.prepar3d.com/forum-5/?mingle ... opic&t=121
This happened before once, and was fixed. ( Got broken in a build)
Good to see you porting your app to P3D.
Geoff
Check out http://www.prepar3d.com/forum-5/?mingle ... opic&t=121
This happened before once, and was fixed. ( Got broken in a build)
Good to see you porting your app to P3D.
Geoff
-
- Posts: 474
- Joined: Mon Aug 16, 2010 7:22 pm
Russ
I have also found this necessary, for some of my SimConnect exes.
Even when DLLstop is able to be called correctly, there is always the chance that the Sim may Crash, and your program then would not get closed. If this is a potential issue, you might want to monitor the Sim application process in your EXE, and if it is not running, take whatever action is appropriate.
Geoff
I have also found this necessary, for some of my SimConnect exes.
Even when DLLstop is able to be called correctly, there is always the chance that the Sim may Crash, and your program then would not get closed. If this is a potential issue, you might want to monitor the Sim application process in your EXE, and if it is not running, take whatever action is appropriate.
Geoff
Any idea on when this patch/fix is going to be released? I'm going live with my addon probably today or tomorrow. (www.fs-force.com)
Russel Dirks
FS Force
Win10 64Bit, i5 4670K 3.4GHZ, Radeon RX 580
FS Force
Win10 64Bit, i5 4670K 3.4GHZ, Radeon RX 580
Quote:
Quote from beatle on October 6, 2011, 16:59
Actually, its a completely different issue :-> In this case, its related to addons that create one or more menu items, SimConnect and the menu system were having a little fight on shutdown.
Tim
I'm in the midst of doing the initial port of the VRS TacPack to Prepar3D and am seeing exactly this issue. (Crash in menu.dll on shutdown if I create menu items via SimConnect) I'm using Prepar3D 1.2.3253.0 (SimConnect 1.2.0.0). Is this version known to be affected by this bug? Any ETA on a fix?
- Beau Hollis
- Lockheed Martin
- Posts: 2452
- Joined: Wed Oct 06, 2010 3:25 pm