Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is the difference b/w Debug and Release Pin
birajendu12-Jan-06 21:17
birajendu12-Jan-06 21:17 
AnswerRe: What is the difference b/w Debug and Release Pin
Prakash Nadar12-Jan-06 21:38
Prakash Nadar12-Jan-06 21:38 
AnswerRe: What is the difference b/w Debug and Release Pin
toxcct12-Jan-06 21:38
toxcct12-Jan-06 21:38 
AnswerRe: What is the difference b/w Debug and Release Pin
Rage12-Jan-06 21:40
professionalRage12-Jan-06 21:40 
GeneralRe: What is the difference b/w Debug and Release Pin
birajendu12-Jan-06 22:15
birajendu12-Jan-06 22:15 
AnswerRe: What is the difference b/w Debug and Release Pin
normanS13-Jan-06 1:08
normanS13-Jan-06 1:08 
GeneralRe: What is the difference b/w Debug and Release Pin
birajendu13-Jan-06 1:18
birajendu13-Jan-06 1:18 
GeneralRe: What is the difference b/w Debug and Release Pin
Shraddhan23-Jan-06 0:52
Shraddhan23-Jan-06 0:52 
... initialise local variable storage to 0

Not that I have noticed. In fact, Visual C++ 6.0 and .NET 2002 both set unassigned variables to something like 0xCDCDCDCD.

Also in Debug mofe, apart from the preprocessor variable _DEBUG being defined, changes are made to several system functions, including new and delete to help catch problems with memory allocation. Allocated blocks of memory have guard bands around them. All user-written functions have code added at the beginning and end to look for problems.

If you release a Debug build, beware - there is debugging information in the .EXE file, a wonderful opportunity for hackers. Makes life so much easier for people to disassemble your program. Try writing a program that WILL crash, and compile it both in Debug mode and in Releae mode. Run the Release version outside the Visual C++ environment, as if it was an ordinary program being run. When it crashes, the system will offer to help debug it. Accept the defaults offered, and you will find yourself back in Visual C++, wondering what on earth you are looking at. Do the same with the Debug build and you will see the difference.

Note that the checks for unassigned variables are not foolproof, unfortunately. I have sometimes have the Debug version work perfectly, and the Release version of the same code crashes due to unasigned variables not being detected.

Shraddhan
QuestionCommunication between applications Pin
rider cool12-Jan-06 21:03
rider cool12-Jan-06 21:03 
AnswerRe: Communication between applications Pin
Michael Dunn12-Jan-06 21:14
sitebuilderMichael Dunn12-Jan-06 21:14 
AnswerRe: Communication between applications Pin
Rage12-Jan-06 21:44
professionalRage12-Jan-06 21:44 
AnswerRe: Communication between applications Pin
ThatsAlok12-Jan-06 22:48
ThatsAlok12-Jan-06 22:48 
Questionprinting .html/htm page Pin
Ankush Mehta12-Jan-06 20:23
Ankush Mehta12-Jan-06 20:23 
QuestionPrinting.eml (Internet E-Mail Message) Type of file Pin
Ankush Mehta12-Jan-06 20:18
Ankush Mehta12-Jan-06 20:18 
QuestionIs there any way to manually define resource id without conflict with others? Pin
followait12-Jan-06 19:19
followait12-Jan-06 19:19 
AnswerRe: Is there any way to manually define resource id without conflict with others? Pin
Owner drawn12-Jan-06 19:24
Owner drawn12-Jan-06 19:24 
GeneralRe: Is there any way to manually define resource id without conflict with others? Pin
<color>Aljechin 12-Jan-06 20:26
<color>Aljechin 12-Jan-06 20:26 
GeneralThank you Pin
Owner drawn12-Jan-06 20:31
Owner drawn12-Jan-06 20:31 
GeneralRe: Thank you Pin
Prakash Nadar12-Jan-06 21:29
Prakash Nadar12-Jan-06 21:29 
AnswerRe: Is there any way to manually define resource id without conflict with others? Pin
Stephen Hewitt12-Jan-06 19:46
Stephen Hewitt12-Jan-06 19:46 
AnswerRe: Is there any way to manually define resource id without conflict with others? Pin
grigsoft12-Jan-06 19:50
grigsoft12-Jan-06 19:50 
QuestionHow to make the scrollBars Colourful of a MDI application Pin
rohinimtech12-Jan-06 18:17
rohinimtech12-Jan-06 18:17 
AnswerRe: How to make the scrollBars Colourful of a MDI application Pin
Owner drawn12-Jan-06 18:34
Owner drawn12-Jan-06 18:34 
AnswerRe: How to make the scrollBars Colourful of a MDI application Pin
Stephen Hewitt14-Jan-06 15:04
Stephen Hewitt14-Jan-06 15:04 
AnswerRe: How to make the scrollBars Colourful of a MDI application Pin
Stephen Hewitt16-Jan-06 18:21
Stephen Hewitt16-Jan-06 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.