P3D crashes on exit with DLL client

russdirks
Posts: 56
Joined: Thu Sep 29, 2011 1:47 am

Postby russdirks » Wed Oct 05, 2011 10:03 pm

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.
Best regards,

Russel Dirks
FS Force
OS : Win10 64Bit

FSMP
Posts: 678
Joined: Sat Sep 25, 2010 9:38 am

Postby FSMP » Thu Oct 06, 2011 8:26 am

Russ



Check out http://www.prepar3d.com/forum-5/?mingleforumaction=viewtopic&t=121



This happened before once, and was fixed. ( Got broken in a build)



Good to see you porting your app to P3D.



Geoff

Legacy Support
Posts: 474
Joined: Mon Aug 16, 2010 7:22 pm

Postby Legacy Support » Thu Oct 06, 2011 10:34 am

Hi Russ,



Yep, it is back. The dev team have identified it and it will be in our next patch. It is a P3D issue and not your addon. It only affects closing of P3D when there is an addon. Looks horrible, but it will be fixed.



John

russdirks
Posts: 56
Joined: Thu Sep 29, 2011 1:47 am

Postby russdirks » Thu Oct 06, 2011 12:00 pm

Great! Thanks for your attention to this matter.
Best regards,

Russel Dirks
FS Force
OS : Win10 64Bit

FSMP
Posts: 678
Joined: Sat Sep 25, 2010 9:38 am

Postby FSMP » Thu Oct 06, 2011 4:02 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

beatle
Posts: 88
Joined: Thu Sep 16, 2010 8:34 pm

Postby beatle » Thu Oct 06, 2011 4:59 pm

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

russdirks
Posts: 56
Joined: Thu Sep 29, 2011 1:47 am

Postby russdirks » Wed Oct 19, 2011 5:51 pm

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)

Best regards,

Russel Dirks
FS Force
OS : Win10 64Bit

WBard
Posts: 1034
Joined: Mon Aug 16, 2010 7:23 pm

Postby WBard » Fri Oct 21, 2011 8:54 am

Hey Russ,



Happy to have you on-board, excited to have support from FS Force! No formal release date on the patch for v1.2.1, but we are working on it and want to get it out to you all sooner rather than later :D

adiemus
Posts: 117
Joined: Fri Mar 16, 2012 4:19 am
Contact:

Postby adiemus » Fri Mar 16, 2012 12:38 am



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?

User avatar
Beau Hollis
Lockheed Martin
Posts: 1886
Joined: Wed Oct 06, 2010 3:25 pm

Postby Beau Hollis » Fri Mar 16, 2012 8:18 am

This will be fixed soon when we release 1.3.



Beau
Beau Hollis
Prepar3D Software Architect

adiemus
Posts: 117
Joined: Fri Mar 16, 2012 4:19 am
Contact:

Postby adiemus » Fri Mar 16, 2012 10:29 am

Alright, thanks.


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 2 guests