LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exe crash

My exe file built with application builder 6.0 crashes every time on launch, without particular message. The same program works well under LabView 6i (Win2000 professional). The program uses VISA VIs for serial and GPIB communication. Thanks for your answers.
0 Kudos
Message 1 of 8
(3,665 Views)
When you say it crashes, what exactly happens? Lock up? Computer reboots? Blue Screen o' Death? Other?

If you take out the VISA calls, does the program still crash? How long after launch does the program crash?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,665 Views)
The program crashes when it's launched, 2 or 3 seconds after double-click on the icon. It doesn't opens. I can see the front panel for a small instant, after what it quits suddenly, and windows gives an error message (program error). The error seems to happen when the program is loading, it doesn't even run. The same program works well under LabView 6i (if it's not compiled in an exe file, but still in .vi).
0 Kudos
Message 3 of 8
(3,665 Views)
Is there anything other than the VISA that is calling resources outside LV proper (i.e. ActiveX, DLLs, CINs etc)?

Can you replace the VISA calls with random number generators or constants to verify that they aren't causing it somehow? Alternately, can the application be easily broken down into seperate pieces that you can build independently (they don't actually have to do anything useful--we are just trying to isolate where the crash is coming from)?

What exactly is the error message that you are getting?

The process for dealing with this is going to be one of isolating bits of your code until you discover what is causing the behavior.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(3,665 Views)
we are having the same problem, did you find a solution to yours?
0 Kudos
Message 5 of 8
(3,665 Views)
Does it crash on your development computer with LabVIEW installed or only on other computers? If it's the latter, then did you install all of the hardware drivers (i.e. NI-GPIB, NI-DAQ)?
0 Kudos
Message 6 of 8
(3,665 Views)
Yes, I've found the problem. The crash is caused by the VISA resource name control that is on the front panel. When it is hidden, it causes no problems (when it is lower in the front panel window), but when it is visible, the exe crashes. This problem does not appear on a VI file (why? I don't know... probably a bug in Labview?). Try putting this control low on the window, so it's hidden when the scroll bar is upper. Build and launch your exe file and scroll down. When the control becomes visible, the program will crash!
I hope that my explanation was clear and helpful... If you don't understand, don't hesitate to say me, and I will try to be more clear...
0 Kudos
Message 7 of 8
(3,665 Views)

There was a bug in 6.0. If you haven't upgraded to 6.0.2, you can go here to get the upgrade. Be sure to upgrade the app builder as well per the instructions.

0 Kudos
Message 8 of 8
(3,665 Views)