LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

My program works fine in debug mode but crashes in release mode!?

Has anyone else got this problem!?

I use Lab-widows 5.5 and windows xp. I am able to build and run my program in debug mode but it crashes when I try to run it in the release mode. It seems to be a memory protection fault, but the "memory display" is grayed out in release mode, so I can't debug it manually.

Regards Mario
0 Kudos
Message 1 of 2
(3,153 Views)
Many common problems found when going from Debug to Release are related to variables: uninitialized variables, unterminated strings, improperly or insufficiently allocated memory for strings, structures, or arrays, etc. The Debug configuration is much more forgiving than the Release configuration.
You need to get an idea on where your Release program is crashing, then take a close look at the variables in that area.
You can keep track of how far your program got by using printf statements, status messages in a text box on your UIR, messages appended to a file, etc.
0 Kudos
Message 2 of 2
(3,147 Views)