10-11-2011 12:28 PM
I have an application that crashes when I close the exe. The app doesn't exhibit this behavior from within the IDE.
JY
Solved! Go to Solution.
10-11-2011 02:02 PM
Hi JY,
ok, crashing isn't nice. But as you don't ask for anything, I think it's not a problem to you
The standard Windows error message doesn't provide any information needed to help here.
Maybe you should attach a VI? Or explain, what the app is doing? Or list the used ActiveX (or any other problematic components)?
10-11-2011 02:38 PM
@GerdW wrote:
[...]
Kudos are welcome
Here is one
And:
There are so many well behaving LabVIEW applications out in this world that do not crash when they stop.
Guenter
10-11-2011 04:00 PM
It doesn't crash when it stops. It gives me an error message when I exit the labview window its self. This only happens with the executable. I am looking for constructive opinions on how to go about solving this issue. Does anyone have any experience with something of this nature?
JY
10-12-2011 02:06 AM
@jeffyy wrote:
It doesn't crash when it stops. It gives me an error message when I exit the labview window its self. This only happens with the executable. I am looking for constructive opinions on how to go about solving this issue. Does anyone have any experience with something of this nature?
JY
Yes, there can be many reasons.
My favourite is: Forgetting to unload a DLL that still has some resorces open when the application runs the LabVIEW Exit function.
It would be great if you could provide more details, preferred a VI that allows us to see what happens on exit.
Guenter
10-12-2011 09:51 AM
Here is the section of code that is causing the crash.
10-12-2011 09:56 AM
10-12-2011 06:14 PM
How do you know that section of code is causing the crash? Did you remove it and it no longer crashed. I mean, I agree that it seems suspect but I just wondered if you'd verified it.
Also, you might want add in some error handling. Add a Simple Error Handler on the end and track errors through you Call Library Function Nodes. At this point, LabVIEW could be throwing an error and you'd never know.
Also, just curious, what's your application here? What kind of DLL's are you calling?