Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read File Pin
Nuri Ismail15-Jun-10 20:45
Nuri Ismail15-Jun-10 20:45 
AnswerRe: Read File Pin
Nuri Ismail15-Jun-10 20:43
Nuri Ismail15-Jun-10 20:43 
JokeRe: Read File Pin
«_Superman_»15-Jun-10 20:49
professional«_Superman_»15-Jun-10 20:49 
Questionunhandled win32 exception occurred..?? Pin
krishnaram_198315-Jun-10 19:34
krishnaram_198315-Jun-10 19:34 
AnswerRe: unhandled win32 exception occurred..?? Pin
Cedric Moonen15-Jun-10 20:13
Cedric Moonen15-Jun-10 20:13 
GeneralRe: unhandled win32 exception occurred..?? Pin
Niklas L15-Jun-10 20:25
Niklas L15-Jun-10 20:25 
AnswerRe: unhandled win32 exception occurred..?? Pin
_AnsHUMAN_ 16-Jun-10 0:27
_AnsHUMAN_ 16-Jun-10 0:27 
AnswerRe: unhandled win32 exception occurred..?? Pin
Aescleal16-Jun-10 6:54
Aescleal16-Jun-10 6:54 
The most common cause I've seen of an exception when you close an application is that someone's been way too clever and generously used pointers mixed with a soupcon of manual memory management. The most common results have been:

- damaging the heap by overwriting something you shouldn't
- double deletion of an object
- using a deleted object

The best way of avoiding this sort of problem is to not have it in the first place. Don't play with pointers and manual memory management unless you really have to. If you do make sure you use all the facilities of the language and runtime library to help you.

Anyway, that's advice for next time... in the meantime have a look at the documentation for structured exception handling (SEH) and how to convert win32 structured exceptions into C++ exceptions. That might help you work out what's happening by decoding what the win32 exception is in the first place.

Another thing you could do is start building earlier versions of the code until you find one that the problem didn't happen in and start working forwards again until you find the first version that caused the problem. The diffs between the versions might give you an idea of what's happening that caused the error.

Cheers,

Ash
QuestionHow to play Windows Media Player in VC++.NET Pin
shiv@nand15-Jun-10 19:31
shiv@nand15-Jun-10 19:31 
GeneralRe: How to play Windows Media Player in VC++.NET Pin
Cool_Dev15-Jun-10 19:47
Cool_Dev15-Jun-10 19:47 
GeneralRe: How to play Windows Media Player in VC++.NET [modified] Pin
Destiny7775-Apr-11 9:06
Destiny7775-Apr-11 9:06 
Questioncopy a registry value to another value Pin
pubis15-Jun-10 16:07
pubis15-Jun-10 16:07 
AnswerRe: copy a registry value to another value Pin
«_Superman_»15-Jun-10 18:26
professional«_Superman_»15-Jun-10 18:26 
GeneralRe: copy a registry value to another value Pin
pubis16-Jun-10 4:26
pubis16-Jun-10 4:26 
GeneralRe: copy a registry value to another value Pin
«_Superman_»16-Jun-10 18:50
professional«_Superman_»16-Jun-10 18:50 
GeneralRe: copy a registry value to another value Pin
pubis17-Jun-10 4:00
pubis17-Jun-10 4:00 
AnswerRe: copy a registry value to another value Pin
pubis16-Jun-10 7:58
pubis16-Jun-10 7:58 
QuestionLarge Object Creation Pin
Baltoro15-Jun-10 13:06
Baltoro15-Jun-10 13:06 
AnswerRe: Large Object Creation Pin
Stephen Hewitt15-Jun-10 14:05
Stephen Hewitt15-Jun-10 14:05 
AnswerRe: Large Object Creation Pin
T210215-Jun-10 21:36
T210215-Jun-10 21:36 
AnswerRe: Large Object Creation Pin
Aescleal16-Jun-10 6:35
Aescleal16-Jun-10 6:35 
AnswerThanks for Information Pin
Baltoro16-Jun-10 13:53
Baltoro16-Jun-10 13:53 
QuestionMSMQ Events in 64 Bit Windows 2003 Server Pin
Hariharan.T15-Jun-10 11:13
Hariharan.T15-Jun-10 11:13 
QuestionDrawing a polygon onto a DIB? Pin
Kiran Satish15-Jun-10 6:47
Kiran Satish15-Jun-10 6:47 
AnswerRe: Drawing a polygon onto a DIB? PinPopular
CPallini15-Jun-10 7:15
mveCPallini15-Jun-10 7:15 

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.