Click here to Skip to main content
15,909,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalremove a dialog box Pin
SimpleProgramer7-Oct-04 22:24
SimpleProgramer7-Oct-04 22:24 
GeneralRe: remove a dialog box Pin
Sujan Christo7-Oct-04 22:28
Sujan Christo7-Oct-04 22:28 
GeneralUnhandled Exception.... :'( Pin
nutkase7-Oct-04 21:53
nutkase7-Oct-04 21:53 
GeneralRe: Unhandled Exception.... :'( Pin
toxcct7-Oct-04 22:23
toxcct7-Oct-04 22:23 
GeneralRe: Unhandled Exception.... :'( Pin
Sujan Christo7-Oct-04 22:26
Sujan Christo7-Oct-04 22:26 
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
nutkase7-Oct-04 23:29
nutkase7-Oct-04 23:29 
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
Sujan Christo8-Oct-04 0:59
Sujan Christo8-Oct-04 0:59 
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
digwizfox8-Oct-04 7:47
digwizfox8-Oct-04 7:47 
Looks like a useful call stack to me. Can't you just doubleclick on the pop statement within the call stack and have visual studio point you to the line of code in the software? If what you have shown me is the complete function, then I assume that one of the ASSERT inputs is evaluating to zero. I would have no idea why this would be but that is probably what is happening. Since I can't see your whole implementation and have no idea what a routing frame is used for in the context of your system, you'll have to research why pThreadState == NULL or why pThreadState->m_pPushRoutingFrame != this. One of those conditions is probably be causing the program to halt since that is the function you've shown me the crash occurs in.

Simply assigning variables wouldn't cause a crash unless another thread within the system is trying to access the routing frame pointers while you are making the pointer swaps. This is another thing to look into. Since you obviously are using threads AND I don't see the use of a CMutex or CCriticalSection, you have to check and see if you have thread conflicts. Is it possible that the pop function is getting interrupted while you are reassigning the pointer values? Perhaps another thread is trying to use the pointer before the pop function is finished. But then if that were the case, I'd expect the debug crash to occur in another function or class. Weird; but swapping pointers like you are when running in a multithreaded system is very dangerous and the CCriticalSection and CMutex classes should be used to protect your software from erratic behavior.

Regards,
Shawn
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
nutkase10-Oct-04 19:16
nutkase10-Oct-04 19:16 
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
digwizfox12-Oct-04 6:24
digwizfox12-Oct-04 6:24 
GeneralRe: Unhandled Exception.... :'( (Code you people asked) Pin
nutkase12-Oct-04 19:39
nutkase12-Oct-04 19:39 
Questionmapi login : password not required ? Pin
_kane_7-Oct-04 21:42
_kane_7-Oct-04 21:42 
AnswerRe: mapi login : password not required ? Pin
_kane_7-Oct-04 21:53
_kane_7-Oct-04 21:53 
GeneralFinish Button Hot key in Wizard97 Pin
Pushkar Tamboli7-Oct-04 21:07
Pushkar Tamboli7-Oct-04 21:07 
GeneralRe: Finish Button Hot key in Wizard97 Pin
toxcct7-Oct-04 21:29
toxcct7-Oct-04 21:29 
GeneralChanging From Dialog to Tab Pin
novicedude7-Oct-04 20:48
novicedude7-Oct-04 20:48 
GeneralRe: Changing From Dialog to Tab Pin
toxcct7-Oct-04 21:04
toxcct7-Oct-04 21:04 
GeneralRe: Changing From Dialog to Tab Pin
Sujan Christo7-Oct-04 23:00
Sujan Christo7-Oct-04 23:00 
GeneralRe: Changing From Dialog to Tab Pin
Anonymous9-Oct-04 15:01
Anonymous9-Oct-04 15:01 
GeneralPocket PC CListbox font Pin
Jochum Wittebrood7-Oct-04 20:09
Jochum Wittebrood7-Oct-04 20:09 
QuestionDialog Window supporting Database ??? Pin
Member 14198777-Oct-04 19:37
Member 14198777-Oct-04 19:37 
AnswerRe: Dialog Window supporting Database ??? Pin
Sujan Christo7-Oct-04 20:40
Sujan Christo7-Oct-04 20:40 
GeneralRe: Dialog Window supporting Database ??? Pin
Member 14198777-Oct-04 20:48
Member 14198777-Oct-04 20:48 
GeneralRe: Dialog Window supporting Database ??? Pin
Sujan Christo7-Oct-04 21:40
Sujan Christo7-Oct-04 21:40 
GeneralRe: Dialog Window supporting Database ??? Pin
Member 14198777-Oct-04 22:07
Member 14198777-Oct-04 22:07 

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.