Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEdit Control and CR count Pin
Marcello15-Jan-04 13:05
Marcello15-Jan-04 13:05 
GeneralWireless signal strength meter Pin
daewoni15-Jan-04 11:29
daewoni15-Jan-04 11:29 
GeneralC++ object instantiation.. Pin
Laing,James15-Jan-04 10:37
Laing,James15-Jan-04 10:37 
GeneralRe: C++ object instantiation.. Pin
Joaquín M López Muñoz15-Jan-04 10:45
Joaquín M López Muñoz15-Jan-04 10:45 
GeneralRe: C++ object instantiation.. Pin
Laing,James15-Jan-04 10:55
Laing,James15-Jan-04 10:55 
GeneralActiveX support in a MFC DLL Pin
jeffc03015-Jan-04 10:22
jeffc03015-Jan-04 10:22 
GeneralRe: ActiveX support in a MFC DLL Pin
Moshirynia15-Jan-04 17:25
Moshirynia15-Jan-04 17:25 
GeneralDebug to release Pin
stupidaccount15-Jan-04 10:06
stupidaccount15-Jan-04 10:06 
I'm building an app using MFC as a front end, with the majority of the app in C++ with heavy use of STL.

I've used Boost::shared_ptr to manage my new/delete calls for me. As far as I can tell, the only pointers I use are STL vector<> iterators.

My problem is this: when I run the app in the debugger, it works perfectly. When I run it as an EXE, it throws an exception and crashes after a few minutes - even though its the exact same build!

I've tried building with _DEBUG and NDEBUG, and both yield the same results. I've tried disabling inlining and optimization, and it makes no difference. The crashes are fairly random, so I suspect a bad pointer.

To check my memory, I've used:
afxMemDF |= checkAlwaysMemDF;
It didn't trip even once while debugging.

Can anyone help me?
GeneralRe: Debug to release Pin
Navin15-Jan-04 10:37
Navin15-Jan-04 10:37 
GeneralRe: Debug to release Pin
stupidaccount15-Jan-04 10:41
stupidaccount15-Jan-04 10:41 
GeneralRe: Debug to release Pin
Joaquín M López Muñoz15-Jan-04 10:39
Joaquín M López Muñoz15-Jan-04 10:39 
GeneralRe: Debug to release Pin
stupidaccount15-Jan-04 10:45
stupidaccount15-Jan-04 10:45 
GeneralRe: Debug to release Pin
Joaquín M López Muñoz15-Jan-04 10:49
Joaquín M López Muñoz15-Jan-04 10:49 
GeneralRe: Debug to release Pin
Anthony_Yio15-Jan-04 14:44
Anthony_Yio15-Jan-04 14:44 
GeneralRe: Debug to release Pin
stupidaccount16-Jan-04 3:00
stupidaccount16-Jan-04 3:00 
Questionhow to change printer fonts Pin
Stober15-Jan-04 8:57
Stober15-Jan-04 8:57 
GeneralExtCreateRegion Win9x Problem Pin
nemo15-Jan-04 8:50
nemo15-Jan-04 8:50 
GeneralRe: ExtCreateRegion Win9x Problem Pin
Michael Dunn15-Jan-04 18:56
sitebuilderMichael Dunn15-Jan-04 18:56 
QuestionCan you suggest some software to create a help file for my application? Pin
ElizabethC15-Jan-04 7:38
ElizabethC15-Jan-04 7:38 
AnswerRe: Can you suggest some software to create a help file for my application? Pin
includeh1015-Jan-04 8:15
includeh1015-Jan-04 8:15 
GeneralRe: Can you suggest some software to create a help file for my application? Pin
ElizabethC15-Jan-04 8:18
ElizabethC15-Jan-04 8:18 
GeneralRe: Can you suggest some software to create a help file for my application? Pin
Antti Keskinen15-Jan-04 8:36
Antti Keskinen15-Jan-04 8:36 
GeneralRe: Can you suggest some software to create a help file for my application? Pin
includeh1015-Jan-04 9:02
includeh1015-Jan-04 9:02 
GeneralRe: Can you suggest some software to create a help file for my application? Pin
ElizabethC15-Jan-04 11:00
ElizabethC15-Jan-04 11:00 
GeneralOwner draw combo-boxes are higher Pin
BadJerry15-Jan-04 7:28
BadJerry15-Jan-04 7:28 

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.