Getting exception data
You know in games and other programs how sometimes they collect data and stuff when there's an exception? How do you collect this data, like the stack, and memory?
In which language?
For Java their Exception class has all of the stuff.
VB.NET has them as well (i think).
C++ i think you might be able to use GetLastError or something.
For Java their Exception class has all of the stuff.
VB.NET has them as well (i think).
C++ i think you might be able to use GetLastError or something.
When an application encounters an exception, the OS will get info on the thread using the GetThreadContext() function. That includes the esp and ebp registers, and you can use ReadProcessMemory() to read the top few values off the stack.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement