Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDEBUG AND RELEASE MODE Pin
karmendra_js27-Oct-05 19:52
karmendra_js27-Oct-05 19:52 
AnswerRe: DEBUG AND RELEASE MODE Pin
kakan27-Oct-05 20:16
professionalkakan27-Oct-05 20:16 
GeneralRe: DEBUG AND RELEASE MODE Pin
Chintoo72328-Oct-05 7:10
Chintoo72328-Oct-05 7:10 
GeneralRe: DEBUG AND RELEASE MODE Pin
Gary R. Wheeler29-Oct-05 4:45
Gary R. Wheeler29-Oct-05 4:45 
GeneralRe: DEBUG AND RELEASE MODE Pin
kakan30-Oct-05 20:10
professionalkakan30-Oct-05 20:10 
AnswerRe: DEBUG AND RELEASE MODE Pin
toxcct27-Oct-05 21:22
toxcct27-Oct-05 21:22 
AnswerRe: DEBUG AND RELEASE MODE Pin
David Crow28-Oct-05 3:41
David Crow28-Oct-05 3:41 
AnswerRe: DEBUG AND RELEASE MODE Pin
Gary R. Wheeler29-Oct-05 5:17
Gary R. Wheeler29-Oct-05 5:17 
In debug mode, two things happen.

First, the compiler generates information about your program used by the debugger. The compiler also generates code to initialize memory to default values.

Second, in debug mode you run your programmer under the debugger. The debugger lets you step through your code, examine data as the program executes, set breakpoints, and perform other operations. The purpose of the debugger is to let you run your program in a controlled fashion so that you can see what it is doing as it runs.

In release mode, the compiler doesn't initialize memory for you; it assumes your program will initialize what it needs. As a rule, in release mode the compiler will also 'optimize' your code. In simplest terms, the compiler generates machine code that runs as fast as possible. The machine code in this case looks different from the debug version, since the compiler can rearrange operations in order to improve efficiency.

As someone else has mentioned, you really want to run your program in debug mode first. This lets you get things working in a controlled environment. After it looks like things are working correctly in debug mode, rebuild the program in release mode, and test it again. There are subtle differences between debug and release. The article Debugging Release Mode Problems[^] has more information.


Software Zen: delete this;
QuestionClassView Missing Pin
shivditya27-Oct-05 19:41
shivditya27-Oct-05 19:41 
AnswerRe: ClassView Missing Pin
kakan27-Oct-05 20:18
professionalkakan27-Oct-05 20:18 
QuestionRe: ClassView Missing Pin
shivditya27-Oct-05 21:03
shivditya27-Oct-05 21:03 
AnswerRe: ClassView Missing Pin
John M. Drescher27-Oct-05 20:27
John M. Drescher27-Oct-05 20:27 
Questionclw seems to be allright Pin
shivditya27-Oct-05 20:52
shivditya27-Oct-05 20:52 
AnswerRe: clw seems to be allright Pin
kakan27-Oct-05 21:21
professionalkakan27-Oct-05 21:21 
AnswerRe: ClassView Missing Pin
Steve Mayfield27-Oct-05 21:44
Steve Mayfield27-Oct-05 21:44 
GeneralRe: ClassView Missing Pin
shivditya27-Oct-05 21:50
shivditya27-Oct-05 21:50 
AnswerRe: ClassView Missing Pin
Trollslayer28-Oct-05 3:25
mentorTrollslayer28-Oct-05 3:25 
QuestionMy problem is still unsolved Pin
shivditya28-Oct-05 17:33
shivditya28-Oct-05 17:33 
Questionhow to pass std::string from dll Pin
compoundeye27-Oct-05 19:09
compoundeye27-Oct-05 19:09 
AnswerRe: how to pass std::string from dll Pin
kakan27-Oct-05 20:12
professionalkakan27-Oct-05 20:12 
GeneralRe: how to pass std::string from dll Pin
compoundeye27-Oct-05 20:19
compoundeye27-Oct-05 20:19 
GeneralRe: how to pass std::string from dll Pin
kakan27-Oct-05 20:26
professionalkakan27-Oct-05 20:26 
AnswerRe: how to pass std::string from dll Pin
S. Senthil Kumar27-Oct-05 21:12
S. Senthil Kumar27-Oct-05 21:12 
GeneralRe: how to pass std::string from dll Pin
compoundeye27-Oct-05 21:52
compoundeye27-Oct-05 21:52 
QuestionHow to make the mfc button as press & lock Pin
LaHaHa27-Oct-05 17:18
LaHaHa27-Oct-05 17:18 

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.