PsyChip
PsyChip

Reputation: 89

Get thread handle from memory address

My multithreaded delphi application has a VEH exception handler. (http://msdn.microsoft.com/en-us/library/windows/desktop/ms681420(v=vs.85).aspx) i can get memory address, exception type etc when triggered but can't get thread information.

is it possible to get thread id from memory address?

Upvotes: 0

Views: 351

Answers (1)

David Heffernan
David Heffernan

Reputation: 613003

Is it possible to get thread ID from a memory address?

If by memory address you mean address of code then the answer is no. Multiple threads can be simultaneously executing at the same address.

I see no evidence that these exception handlers are called in a thread other than the one which raised the exception.

Upvotes: 2

Related Questions