LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Keeps Crashing With No Error Message

I have an application that I built in LabVIEW. As soon as I run it, no window pops up and it immediately quits itself. If I run the VI in my development environment I have no problems with it, it runs correctly.

 

Once it is .exe is when the issue occurs. There are no warnings, error codes, anything.

 

Is there a way to see or look up error codes for something like this?

 

0 Kudos
Message 1 of 8
(630 Views)

Do you have error handling in place? (Note that the run-time engine does not support automatic error handling. You need to add error handling in your own code for an EXE.)

 

How is execution controlled in the development environment?

0 Kudos
Message 2 of 8
(621 Views)

I do have error handling in place.

 

Execution starts with a Boolean value being set to true (programmatically).

0 Kudos
Message 3 of 8
(587 Views)

How do you run it in development setup ? 

Do you use the run button or the Continue Run button ? 

0 Kudos
Message 4 of 8
(566 Views)

Well without being able to see your code we can only guess. Most often when a program runs fine in the development environment and crashes when compiled to an exe is a race condition in your code. Next is hard coded paths that may not exist on a target computer. not getting any type of error message means your error handling is probably not sufficient. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 8
(556 Views)

I just use the run button. Not run continuously.

0 Kudos
Message 6 of 8
(536 Views)

It is weird as this application is in use currently and has an executable built for it. All I did was re-build on a different PC and am now seeing the issue.

0 Kudos
Message 7 of 8
(535 Views)

@LearningLabVIEW wrote:

It is weird as this application is in use currently and has an executable built for it. All I did was re-build on a different PC and am now seeing the issue.


Are you using the MS Office report generation toolkit to read or write Excel or Word documents? I believe that tool kit relies on ActiveX and I have ran into issues in the past with different versions of ActiveX on different computers causing issues.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 8
(524 Views)