Have anyone tried breaking the execution when there is a messagebox popped
up my the
::MessageBox(....) function or AfxMsgbox(...)
The call stack just shows

7ffe0304()
USER32! 77d746fe()
USER32! 77d61e6d()

Is there any easy way to see the call stack at this point.?
thanks
fleming

Re: how to view the stack when there is a messagebox in front by CheckAbdoul

CheckAbdoul
Wed Aug 13 17:32:35 CDT 2003

Install the symbols for the OS files ( like user32.dll, kernel32.dll
etc ).

--
Cheers
Check Abdoul [ VC++ MVP ]
-----------------------------------

"Fleming" <fleming@cswl.com> wrote in message
news:O43WtieYDHA.1816@TK2MSFTNGP09.phx.gbl...
> Have anyone tried breaking the execution when there is a messagebox popped
> up my the
> ::MessageBox(....) function or AfxMsgbox(...)
> The call stack just shows
>
> 7ffe0304()
> USER32! 77d746fe()
> USER32! 77d61e6d()
>
> Is there any easy way to see the call stack at this point.?
> thanks
> fleming
>
>



Re: how to view the stack when there is a messagebox in front by Michael

Michael
Wed Aug 13 20:29:35 CDT 2003

Hi Fleming,

In addition to Check's suggestion of installing system symbols, It's also
likely that when you break, you are breaking into a thread other than the
primary UI thread. The messagebox is being displayed from the primary
thread's context, so the call stack you are seeing could very well be from
another thread -- and completely unrelated to the messagebox itself. If this
is the case, once you have broken, you can switch thread focus via the
[Debug >Threads...] menu. If you have only one or two threads, it's easy
enough just to find the right thread by trial and error. Otherwise, I find
it helpful to start up Spy++ and point it at the messagebox in question to
get the thread id.

Regards,
Mike

"Fleming" <fleming@cswl.com> wrote in message
news:O43WtieYDHA.1816@TK2MSFTNGP09.phx.gbl...
> Have anyone tried breaking the execution when there is a messagebox popped
> up my the
> ::MessageBox(....) function or AfxMsgbox(...)
> The call stack just shows
>
> 7ffe0304()
> USER32! 77d746fe()
> USER32! 77d61e6d()
>
> Is there any easy way to see the call stack at this point.?
> thanks
> fleming
>
>



Re: how to view the stack when there is a messagebox in front by Shane

Shane
Tue Sep 09 14:37:07 CDT 2003

I am having the same problem, but installing the symbols
did not make a difference other than showing actual
fuction names instead of memory adresses. In fact my
problem seemed to start after installing the symbols, but
I don't know if installing the symbols cause this
problem. I have checked every setting I can think of and
more, but have not found an answer. I was always very
convenient breaking the execution of the code when a
message box is displayed, but no more.

When I break the execution when a message box is
displayed the call stack shows the following in the
WinMain thread for example:

user32.dll!_NtUserWaitMessage@0() + 0xc
user32.dll!_InternalDialogBox@24() + 0xce
user32.dll!_SoftModalMessageBox@4() + 0x72c
user32.dll!_MessageBoxWorker@4() + 0x267
user32.dll!_MessageBoxTimeoutW@24() + 0x78

Why can't I see the entire call stack for the WinMain
thread? Other developers in our group don't have this
problem.

Any help would be appreciated.

>-----Original Message-----
> Install the symbols for the OS files ( like
user32.dll, kernel32.dll
>etc ).
>
>--
>Cheers
>Check Abdoul [ VC++ MVP ]
>-----------------------------------
>
>"Fleming" <fleming@cswl.com> wrote in message
>news:O43WtieYDHA.1816@TK2MSFTNGP09.phx.gbl...
>> Have anyone tried breaking the execution when there is
a messagebox popped
>> up my the
>> ::MessageBox(....) function or AfxMsgbox(...)
>> The call stack just shows
>>
>> 7ffe0304()
>> USER32! 77d746fe()
>> USER32! 77d61e6d()
>>
>> Is there any easy way to see the call stack at this
point.?
>> thanks
>> fleming
>>
>>
>
>
>.
>