Possible bug

Jun 13, 2013 at 1:58 PM
Hi, awesome code!
one thing:
In ShowCallstack you check "if (hThread == GetCurrentThread())", which doesn't always work since handles to the same thread may have a different value. Better do something like "if (GetThreadId(hThread ) == GetCurrentThreadId())"

I noticed that when got a hang while printing entire process' stack by iterating threads with Thread32Next.
Coordinator
Sep 14, 2014 at 7:24 PM
Thanks for the correction! Fixed in the main-trunk
Marked as answer by jkalmbach on 9/15/2014 at 2:03 AM
Nov 20, 2014 at 11:20 AM
This seems to have broken compatibility with XP SP2 and 3.
GetThreadId is only available on Vista and later.
Coordinator
Nov 21, 2014 at 3:20 PM