Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help! Pressed wrong button and cant fix it! Pin
shultas15-Jan-04 17:20
shultas15-Jan-04 17:20 
GeneralRe: Help! Pressed wrong button and cant fix it! Pin
bryce15-Jan-04 17:21
bryce15-Jan-04 17:21 
GeneralChange button text Pin
shultas15-Jan-04 15:45
shultas15-Jan-04 15:45 
GeneralRe: Change button text Pin
valikac15-Jan-04 16:17
valikac15-Jan-04 16:17 
GeneralRe: Change button text Pin
shultas15-Jan-04 17:40
shultas15-Jan-04 17:40 
GeneralRe: Change button text Pin
Kene15-Jan-04 21:44
Kene15-Jan-04 21:44 
Generalanyone know how to convert bitmap to jpeg.. Pin
fatso jon15-Jan-04 14:47
fatso jon15-Jan-04 14:47 
GeneralRe: anyone know how to convert bitmap to jpeg.. Pin
Christian Graus15-Jan-04 15:30
protectorChristian Graus15-Jan-04 15:30 
Question????the problem of mscomm32.ocx and vc++???? Pin
anders_zhou15-Jan-04 14:26
anders_zhou15-Jan-04 14:26 
AnswerRe: ????the problem of mscomm32.ocx and vc++???? Pin
Christian Graus15-Jan-04 15:32
protectorChristian Graus15-Jan-04 15:32 
AnswerRe: ????the problem of mscomm32.ocx and vc++???? Pin
Moshirynia15-Jan-04 16:20
Moshirynia15-Jan-04 16:20 
GeneralList control question Pin
User 58385215-Jan-04 14:09
User 58385215-Jan-04 14:09 
GeneralRe: List control question Pin
User 58385215-Jan-04 15:46
User 58385215-Jan-04 15:46 
GeneralRe: List control question Pin
Michael Dunn15-Jan-04 18:48
sitebuilderMichael Dunn15-Jan-04 18:48 
QuestionHow do i get my comp's ip ? Pin
Chernobog115-Jan-04 13:38
Chernobog115-Jan-04 13:38 
AnswerRe: How do i get my comp's ip ? Pin
bryce15-Jan-04 13:40
bryce15-Jan-04 13:40 
GeneralRe: How do i get my comp's ip ? Pin
Chernobog115-Jan-04 13:50
Chernobog115-Jan-04 13:50 
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?

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.