Dialog crashes
-
Hi all, In a program, I have a linked list of Dialogs. Upon some actions of the user, I select one and present it (using DoModal). All of a sudden, the system now crashes in production compilation (the debug compilation of course has got no problem whatsoever). I have built in some lines to a tracefile, and so far, this works fine all the way to the end of the "OnInitDialog" routine. After that, Windows asks me to send a message to mr. Gates. Has anyone got an idea of how to trace this further down the events? I am of course doing something trivial wrong, but how do I get there (especially since the debug version of my program works fine...) Thanks in advance for any suggestions. William
-
Hi all, In a program, I have a linked list of Dialogs. Upon some actions of the user, I select one and present it (using DoModal). All of a sudden, the system now crashes in production compilation (the debug compilation of course has got no problem whatsoever). I have built in some lines to a tracefile, and so far, this works fine all the way to the end of the "OnInitDialog" routine. After that, Windows asks me to send a message to mr. Gates. Has anyone got an idea of how to trace this further down the events? I am of course doing something trivial wrong, but how do I get there (especially since the debug version of my program works fine...) Thanks in advance for any suggestions. William
Can you show code in
OnInitDialog()
? Probably, you are using something, yet to initialize.Prasad Notifier using ATL | Operator new[],delete[][^]
-
Can you show code in
OnInitDialog()
? Probably, you are using something, yet to initialize.Prasad Notifier using ATL | Operator new[],delete[][^]
Prasad, Thanks for the suggestion. I have already tried to comment-out every statement in the OnInitDialog (Except of course for the CDialog::OnInitDialog and the return statement): no change in the program's behaviour. William
-
Prasad, Thanks for the suggestion. I have already tried to comment-out every statement in the OnInitDialog (Except of course for the CDialog::OnInitDialog and the return statement): no change in the program's behaviour. William
If possible, debug in release mode. May this link[^]is helpful to you.
Prasad Notifier using ATL | Operator new[],delete[][^]