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
>
>