Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception Handling MFC detail information Pin
Victor Nijegorodov29-Jun-17 10:26
Victor Nijegorodov29-Jun-17 10:26 
GeneralRe: Exception Handling MFC detail information Pin
ForNow29-Jun-17 10:49
ForNow29-Jun-17 10:49 
GeneralRe: Exception Handling MFC detail information Pin
Randor 29-Jun-17 10:52
professional Randor 29-Jun-17 10:52 
GeneralRe: Exception Handling MFC detail information Pin
ForNow29-Jun-17 15:51
ForNow29-Jun-17 15:51 
QuestionRe: Exception Handling MFC detail information Pin
David Crow29-Jun-17 17:37
David Crow29-Jun-17 17:37 
AnswerRe: Exception Handling MFC detail information Pin
ForNow30-Jun-17 2:17
ForNow30-Jun-17 2:17 
GeneralRe: Exception Handling MFC detail information Pin
Bram van Kampen30-Jun-17 13:14
Bram van Kampen30-Jun-17 13:14 
AnswerRe: Exception Handling MFC detail information Pin
Bram van Kampen30-Jun-17 12:51
Bram van Kampen30-Jun-17 12:51 
Well,

You have another post about the failures of optimizers. Do those threads relate to the same problem? (or even the same problem?)

I understand that you are in a state of desperation. Believe me, I've been there myself, many times and more. When all other options fail, you are left with nothing else left to blame, but the compiler. I must say, I use a Windows NT version of the Development Environment hailing back to 1998, and, that has indeed a few issues, which I have now documented and hence avoid.
For Instance, Standard Code like:
C++
for(int i=0;i<A;i++){Foo(i);}
worked in Debug, but caused an exception in Retail.
The Work around was simple:
C++
int i; for(i=0;i<A;i++){ Foo(i);}

Be Realistic, anything drastically wrong with the MFC Compiler or MFC Libraries, would very soon have thrown up issues world wide.

I understand that your code runs flawless in the Debug version, but bails out in the retail version. The difference between the two builds are far bigger than the application of an optimisation process. For starters they link into different MFC Libraries.

Have you tried: Why Program works in debug but not release mode By Microsoft, or, Surviving the Release Version in our own Code Project Site.

There is something trivial wrong with your code, that your compiler can read and interpret without generating a syntax error, but which also does something quite different than what you intended it to do, and causes an exception to be thrown in release mode. The Debug mode tends to be more tolerant of (wittingly or unwittingly) doing 'Smart' things.

In order to allow us to help you, show us some (or Much) of the offending Code by attachment.
Regards, Smile | :)
Bram van Kampen


modified 30-Jun-17 18:58pm.

QuestionUDP Sockets and Windows 10 Pin
Rick York27-Jun-17 13:27
mveRick York27-Jun-17 13:27 
AnswerRe: UDP Sockets and Windows 10 Pin
Afzaal Ahmad Zeeshan27-Jun-17 13:44
professionalAfzaal Ahmad Zeeshan27-Jun-17 13:44 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York27-Jun-17 16:49
mveRick York27-Jun-17 16:49 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 27-Jun-17 20:27
professional Randor 27-Jun-17 20:27 
GeneralRe: UDP Sockets and Windows 10 Pin
leon de boer27-Jun-17 21:15
leon de boer27-Jun-17 21:15 
AnswerRe: UDP Sockets and Windows 10 Pin
Randor 27-Jun-17 20:37
professional Randor 27-Jun-17 20:37 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York28-Jun-17 6:59
mveRick York28-Jun-17 6:59 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 28-Jun-17 7:53
professional Randor 28-Jun-17 7:53 
AnswerRe: UDP Sockets and Windows 10 Pin
jeron128-Jun-17 5:04
jeron128-Jun-17 5:04 
GeneralRe: UDP Sockets and Windows 10 Pin
Rick York28-Jun-17 6:57
mveRick York28-Jun-17 6:57 
GeneralRe: UDP Sockets and Windows 10 Pin
jeron128-Jun-17 7:16
jeron128-Jun-17 7:16 
AnswerRe: UDP Sockets and Windows 10 Pin
Rick York28-Jun-17 7:47
mveRick York28-Jun-17 7:47 
GeneralRe: UDP Sockets and Windows 10 Pin
Randor 28-Jun-17 8:00
professional Randor 28-Jun-17 8:00 
GeneralRe: UDP Sockets and Windows 10 Pin
leon de boer28-Jun-17 8:27
leon de boer28-Jun-17 8:27 
QuestionDirect creation of CWnd Object Pin
al250027-Jun-17 5:16
al250027-Jun-17 5:16 
AnswerRe: Direct creation of CWnd Object Pin
Victor Nijegorodov27-Jun-17 6:17
Victor Nijegorodov27-Jun-17 6:17 
AnswerRe: Direct creation of CWnd Object Pin
Victor Nijegorodov27-Jun-17 6:27
Victor Nijegorodov27-Jun-17 6:27 

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.