StackTrace constructor on other threads

  • Thread starter Thread starter Adam Clauss
  • Start date Start date
A

Adam Clauss

There is a StackTrace constructor that can take a target thread. This
requires that the target thread be Suspended. However, the Suspend() method
of Thread is now deprecated. Is there an alternative?
 
Adam,

I would think that by association, this constructor is depreciated. If
you need stack trace information from a thread, you should have a thread
offer that up.

Either that, or create a custom runtime host which you can use to
monitor the stacks.

Hope this helps.
 
Nicholas Paldino said:
Adam,

I would think that by association, this constructor is depreciated. If
you need stack trace information from a thread, you should have a thread
offer that up.

Either that, or create a custom runtime host which you can use to
monitor the stacks.

It's amazing how the most innocent comments actually set a light bulb off
hehe. Option 2... is way too complicated for what I am doing.

However, I definately have a method for getting the call stack to be
generated by the threads themselves. Thanks for the help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top