Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print thread id in TRACE

Status
Not open for further replies.

xzhang

Programmer
Jun 7, 2001
9
US
What code I should use to access current threadID and print it in TRACE statement when running a app in debugger mode?

I tried 'TRACE(&quot;+ + somewhere in a function=<%d> + +\n&quot;, @TIB + 0x24 );' and it did not work, though '@TIB + 0x24' worked in watch window.

Thanks.

Xiaoming
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top