tags:

views:

46

answers:

1

I know there's nothing in the box ... but does anyone have any tricks.

Managed threads not OS threads please.

Cheers

Answering the comments:

Version is .Net 3.5.

I want all managed threads in the current running process.

I want them so I can get the call stack of everythread.

Thanks

+1  A: 

I suspect that anything at this level would be done with the debugging hooks outside of managed code. By design, it isn't really geared up to let you do that. Of course, you could just use any existing debugger, etc (even just windbg/sos).

For you own threads - simply store away a reference when you create them. But of course, don't do this as a mechanism to abort them etc - there are much better (i.e. workable) ways of doing that with things like Monitor, Mutex, etc.

Of course, if you don't mind stepping outside of managed code I'm sure there are options...

Marc Gravell