02-20-2024 12:20 PM
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?
02-20-2024 12:38 PM
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?
02-20-2024 01:04 PM
I do have error handling in place.
Execution starts with a Boolean value being set to true (programmatically).
02-20-2024 04:04 PM
How do you run it in development setup ?
Do you use the run button or the Continue Run button ?
02-20-2024 05:03 PM
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.
02-21-2024 08:43 AM
I just use the run button. Not run continuously.
02-21-2024 08:43 AM
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.
02-21-2024 09:10 AM
@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.