LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI crash in debugger only

I am running LabWindows/CVI 8.0.1 on Windows XP Professional with SP2.  For one of my applications, LabWindows crashes when I run it in the debugger.  By that I mean that LabWindows closes completely without a clue as to why.

 

This happens with one (but not others) of my applications on two different computers.  If I run the debug version of the executable directly, it will not crash.  But when I run it in the debugger, it crashes immediately.  I tried setting a breakpoint in the first statement of the main function, but it crashes before it gets there.

 

I am probably overflowing some array or misallocating some memory, but I cannot troubleshoot it due to the immediate crash in the debugger.

Can someone give me some hints as to how I can trace down the area of code causing my problem?

 

Thanks.

0 Kudos
Message 1 of 4
(3,470 Views)
Hi Don, have your application ever run in debug mode? In this case the debug files may have corrupted so that new runs of the project give the error you are experiencing.
You may try rebuilding your debug application from scratch. You may recompile all source code files and create again the debuggable execution (items in Debug menu) or simply delete cvibuild.yourapplication directory together with cws and *_dbg.* files in your application directory: after this rerunning your application in debug mode will rebuild all the debug executable.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(3,451 Views)
Don,
 
You might also try some more aggressive settings in the Build>Options panel.
Message 3 of 4
(3,437 Views)

Thanks to Roberto and Ian.  After wiping out the old project files and creating a completely new project for my existing source files, the crash problem went away.

 

0 Kudos
Message 4 of 4
(3,417 Views)