LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Program Error from running the *,exe file but works fine running with CVI

When starting CVI created program on Win 2000, I get message “Program Error”.
 
I have created a program using NI/CVI version 5.5. I am running windows 2000, I get message 
“Program Error"
*.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.”
 
It works fine when running directly from the compilier, but if I run just the *.exe I get this error.  I never used to.
Please let me know if anyone else had this problem or knows solution.
 
Thank you very much.
Craig
0 Kudos
Message 1 of 2
(2,791 Views)

In the debugger unitialized globals are initialized to zero, but not for a release .exe.  So if you are checking whether a global pointer is NULL before it is set to a value by your application it will generally work fine in the debugger but may crash as a release configuration depending on what you use that pointer for.  That's a common thing I have run into.

0 Kudos
Message 2 of 2
(2,774 Views)