Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Color Scheme Pin
Nibu babu thomas19-May-06 21:37
Nibu babu thomas19-May-06 21:37 
AnswerRe: Color Scheme Pin
Laxman Auti19-May-06 23:09
Laxman Auti19-May-06 23:09 
GeneralRe: Color Scheme Pin
RockyJames20-May-06 0:14
RockyJames20-May-06 0:14 
QuestionRelease Code Optimization Problems.. Pin
rbid19-May-06 20:45
rbid19-May-06 20:45 
AnswerRe: Release Code Optimization Problems.. Pin
Laxman Auti19-May-06 20:59
Laxman Auti19-May-06 20:59 
GeneralRe: Release Code Optimization Problems.. Pin
rbid19-May-06 21:14
rbid19-May-06 21:14 
AnswerRe: Release Code Optimization Problems.. Pin
Saurabh.Garg19-May-06 22:32
Saurabh.Garg19-May-06 22:32 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 4:56
rbid20-May-06 4:56 
Saurabh.Garg wrote:
ForumVisual C++ / MFC
Subject:Re: Release Code Optimization Problems..
Sender:Saurabh.Garg
Date:4:32 20 May '06

If a code runs in debug mode and not in release mode then most probably there is a bug in the code, which is exposed in release mode due to optimizations.

If you are using VS 2005 (this might work with VS 2003 also but I am not sure since I never used it) then its simple, just put break point in the code and let then program run under debugger. When program crashes visual studio will give you an option of breaking into the code. This way you will know where exactly is the problem.

Hope this helps.

-Saurabh


You are right, but the code does not crash, just gives a different result that is not acceptable. Puting a breakpoint or dumping via TRACE or printf is like searching for needle in a montain of hay (or how you say it).. I'm running VS 2003.

A great article about Surviving the Release version[^] can be found in this site as well..

I'm also thinking about what is mentioned here[^].

Have a nice day.


-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard

My articles
GeneralRe: Release Code Optimization Problems.. Pin
Saurabh.Garg20-May-06 16:21
Saurabh.Garg20-May-06 16:21 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 21:57
rbid20-May-06 21:57 
GeneralRe: Release Code Optimization Problems.. Pin
Saurabh.Garg21-May-06 16:36
Saurabh.Garg21-May-06 16:36 
GeneralRe: Release Code Optimization Problems.. Pin
rbid22-May-06 8:23
rbid22-May-06 8:23 
AnswerRe: Release Code Optimization Problems.. Pin
Ryan Binns20-May-06 1:53
Ryan Binns20-May-06 1:53 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 5:04
rbid20-May-06 5:04 
GeneralRe: Release Code Optimization Problems.. Pin
Ryan Binns20-May-06 14:38
Ryan Binns20-May-06 14:38 
GeneralRe: Release Code Optimization Problems.. Pin
rbid22-May-06 8:28
rbid22-May-06 8:28 
AnswerRe: Release Code Optimization Problems.. Pin
Ray Hagstrom20-May-06 8:46
Ray Hagstrom20-May-06 8:46 
GeneralRe: Release Code Optimization Problems.. Pin
rbid20-May-06 10:17
rbid20-May-06 10:17 
AnswerSummary... Pin
rbid24-May-06 8:19
rbid24-May-06 8:19 
QuestionString Conversion Pin
satsumatable19-May-06 19:50
satsumatable19-May-06 19:50 
AnswerRe: String Conversion [modifed] Pin
Nibu babu thomas19-May-06 20:04
Nibu babu thomas19-May-06 20:04 
GeneralRe: String Conversion Pin
satsumatable19-May-06 20:16
satsumatable19-May-06 20:16 
GeneralRe: String Conversion Pin
Nibu babu thomas19-May-06 20:20
Nibu babu thomas19-May-06 20:20 
GeneralRe: String Conversion Pin
NiceNaidu19-May-06 20:32
NiceNaidu19-May-06 20:32 
GeneralRe: String Conversion Pin
Nibu babu thomas19-May-06 20:36
Nibu babu thomas19-May-06 20:36 

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.