This project has moved and is read-only. For the latest updates, please go here.

Possible bug

Jun 13, 2013 at 2: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.
Sep 14, 2014 at 8: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 12:20 PM
This seems to have broken compatibility with XP SP2 and 3.
GetThreadId is only available on Vista and later.
Nov 21, 2014 at 4:20 PM