R
rani.yaroshinski
Hi all,
The Stacktrace class (system.diagnostic) in CLR 2.0 (Framework 2.0),
still offers a constructor to allow showing the stack-trace of another
thread. However, the usage involves suspending the diagnosted thread.
Now, CLR 2.0 turns the Suspend method into obsolete, which leaves the
above quite impossible/useless (it is still possible in theory, cause
you can use obsolete methods).
I wonder whether the Stacktrace con was just forgotten, or there is
some new way to write and manage threads, so it will be possible to
diagnose other threads ...
If some of you, are unable to find reason for this, I'll give one.
Assume a thread is stuck in a multithreaded program (maybe in
deadlock), and I would like to abort it, but first write its state to
log, in order to be able to fix the problem later.
Regards,
Rani
The Stacktrace class (system.diagnostic) in CLR 2.0 (Framework 2.0),
still offers a constructor to allow showing the stack-trace of another
thread. However, the usage involves suspending the diagnosted thread.
Now, CLR 2.0 turns the Suspend method into obsolete, which leaves the
above quite impossible/useless (it is still possible in theory, cause
you can use obsolete methods).
I wonder whether the Stacktrace con was just forgotten, or there is
some new way to write and manage threads, so it will be possible to
diagnose other threads ...
If some of you, are unable to find reason for this, I'll give one.
Assume a thread is stuck in a multithreaded program (maybe in
deadlock), and I would like to abort it, but first write its state to
log, in order to be able to fix the problem later.
Regards,
Rani