A password will be e-mailed to you.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

Pages: [1]
Author Topic: P3D crashes on exit with DLL client
russdirks
New User
Posts: 3
Send Message
Post P3D crashes on exit with DLL client
on: October 5, 2011, 22:03

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.

FSMP
Professional
Posts: 664
Send Message
Post Re: P3D crashes on exit with DLL client
on: October 6, 2011, 08:26

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

Geoff

Legacy-
Support
Lockheed Martin
Posts: 480
Send Message
Legacy Support
Post Re: P3D crashes on exit with DLL client
on: October 6, 2011, 10:34

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
New User
Posts: 3
Send Message
Post Re: P3D crashes on exit with DLL client
on: October 6, 2011, 12:00

Great! Thanks for your attention to this matter.

FSMP
Professional
Posts: 664
Send Message
Post Re: P3D crashes on exit with DLL client
on: October 6, 2011, 16:02

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

Geoff

beatle
Advanced
Posts: 91
Send Message
Post Re: P3D crashes on exit with DLL client
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

russdirks
New User
Posts: 3
Send Message
Post Re: P3D crashes on exit with DLL client
on: October 19, 2011, 17:51

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)

WBard
Lockheed Martin
Posts: 1027
Send Message
Wes
Post Re: P3D crashes on exit with DLL client
on: October 21, 2011, 08:54

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

Wes Bard
Software Manager - Prepar3D® Team

adiemus
Beginner
Posts: 30
Send Message
Post Re: P3D crashes on exit with DLL client
on: March 16, 2012, 00:38

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
Lockheed Martin
Posts: 816
Send Message
bhollis
Post Re: P3D crashes on exit with DLL client
on: March 16, 2012, 08:18

This will be fixed soon when we release 1.3.

Beau

Beau Hollis
Rendering System Lead - Prepar3D® Team

adiemus
Beginner
Posts: 30
Send Message
Post Re: P3D crashes on exit with DLL client
on: March 16, 2012, 10:29

Alright, thanks.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.31 ; Page loaded in: 0.382 seconds.