Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprob. regarding release and debug build Pin
Chanda.com19-Jun-03 0:34
Chanda.com19-Jun-03 0:34 
GeneralRe: prob. regarding release and debug build Pin
parths19-Jun-03 0:42
parths19-Jun-03 0:42 
GeneralRe: prob. regarding release and debug build Pin
Chanda.com19-Jun-03 0:47
Chanda.com19-Jun-03 0:47 
GeneralRe: prob. regarding release and debug build Pin
User 665819-Jun-03 0:52
User 665819-Jun-03 0:52 
GeneralRe: prob. regarding release and debug build Pin
tareqsiraj19-Jun-03 1:00
tareqsiraj19-Jun-03 1:00 
GeneralRe: prob. regarding release and debug build Pin
Roger Allen19-Jun-03 3:22
Roger Allen19-Jun-03 3:22 
GeneralRe: prob. regarding release and debug build Pin
AlexO19-Jun-03 3:28
AlexO19-Jun-03 3:28 
GeneralRe: prob. regarding release and debug build Pin
Jonathan Craig20-Jun-03 7:12
Jonathan Craig20-Jun-03 7:12 
One classic reason for this is to define a ON_MESSAGE handler incorrectly. The prototype for the ON_MESSAGE hander is:

afx_msg long OnMyMessage(WPARAM wParam, LPARAM lParam);

But, if you define it like this:

afx_msg void OnMyMessage(WPARAM wParam, LPARAM lParam);

It will work fine in debug mode and crash in release mode. You get no warnings and it can be very, very hard to debug (because it works in debug mode). This one has got me before. It took about 2 days to figure it out.

Hope this helps... Smile | :)

Jonathan Craig
www.mcw-tech.com

Jonathan Craig
www.mcw-tech.com
GeneralBitmap Pin
black&white19-Jun-03 0:24
black&white19-Jun-03 0:24 
GeneralRe: Bitmap Pin
KarstenK19-Jun-03 0:33
mveKarstenK19-Jun-03 0:33 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 5:28
Anonymous19-Jun-03 5:28 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:14
basementman19-Jun-03 8:14 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:17
basementman19-Jun-03 8:17 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 8:27
Anonymous19-Jun-03 8:27 
GeneralRe: Bitmap Pin
basementman19-Jun-03 8:29
basementman19-Jun-03 8:29 
GeneralRe: Bitmap Pin
Anonymous19-Jun-03 9:26
Anonymous19-Jun-03 9:26 
GeneralOut of heap space Pin
Jorgen E.19-Jun-03 0:10
Jorgen E.19-Jun-03 0:10 
GeneralRe: Out of heap space Pin
John M. Drescher19-Jun-03 0:32
John M. Drescher19-Jun-03 0:32 
GeneralRe: Out of heap space Pin
Jorgen E.19-Jun-03 1:12
Jorgen E.19-Jun-03 1:12 
GeneralRe: Out of heap space Pin
John M. Drescher19-Jun-03 3:31
John M. Drescher19-Jun-03 3:31 
GeneralRe: Out of heap space Pin
peterchen19-Jun-03 3:10
peterchen19-Jun-03 3:10 
GeneralRe: Out of heap space Pin
Jorgen E.19-Jun-03 19:29
Jorgen E.19-Jun-03 19:29 
GeneralRe: Out of heap space Pin
peterchen19-Jun-03 21:44
peterchen19-Jun-03 21:44 
GeneralRe: Out of heap space Pin
Jorgen E.19-Jun-03 22:37
Jorgen E.19-Jun-03 22:37 
GeneralRe: Out of heap space Pin
peterchen20-Jun-03 1:32
peterchen20-Jun-03 1:32 

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.