You're right, you should not use TIDs; but I agree that it's useful for
debugging.

Use:

AppDomain.GetCurrentThreadId()

Regards,
Pablo Castro
Lagash Systems S.A.


----- Original Message -----
From: "John Lam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 2:52 AM
Subject: [DOTNET] Managed thread id?


I know that I shouldn't write any code that depends on this, but it's
kind of useful for debugging / test scenarios. Is there any way to get
the managed thread id of a thread?



Thanks,



-John

http://www.iunknown.com <http://www.iunknown.com/>



You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to