May 02, 2005Re: Stack traced exceptions
Posted in reply to Sean Kelly
"Sean Kelly" <firstname.lastname@example.org> wrote in message news:email@example.com... > In article <firstname.lastname@example.org>, Maxime Larose says... > > > >- There are some undocumented requirements for StackWalk and I need a > >CONTEXT. Apparently, a valid CONTEXT can only be obtained when: (1) the > >thread is sleeping or (2) an exception is raised. > > Look at std.thread and/or internal.gc.gcx. One of those grabs a CONTEXT structure in Windows builds. This is used to get stack pointers for garbage > collection. > > > Sean > > I checked std.thread: nothing. In internal.gc.gcx, the CONTEXT is gotten with GetThreadContext. Problem there is that the thread must be stopped for the CONTEXT to be valid...
Copyright © 1999-2016 by Digital Mars ®, All Rights Reserved