Difference between Debug and Release code...

Started by
11 comments, last by GameDev.net 18 years ago
Quote:Original post by EonStrife
xErix, thanks. But, I think that VC++ won't compile (or generate error messages) if I use uninitialized variables...Hence, I won't be able to run the program in debug mode if I do that...


It may generate a warning if it can tell, which is a big "if". You may also need to crank up the warning settings to get it to display, I don't remember VC's default behavior on this off the top of my head. Try it anyways, it might uncover the problem ;-).
Advertisement
Uninitialized variable....Like this one ?

int i;

Then I should do this ?

int i=0;

??

BTW, a little OT. Seems that I have hidden breakpoints in my program (I use VC++ 6.0). Sometimes, the program breaks and VC++ gives message like "User Breakpoint at xxxxxxxx), and I am presented with assembly code. How do I clear those hidden breakpoints (Even though the breakpoint list in Edit->Breakpoints is empty) ?

User breakpoint = exception, so fix your faulty code to remove them ;)
And dont use vc++ 6, download the express version of vc++ 8.

This topic is closed to new replies.

Advertisement