M
Markus Eßmayr
Hi,
in my application I need to get the current executing location of a thread.
Until now I did this by
Thread executingThread;
....
executingThread.Suspend();
StackTrace executionLocation = new StackTrace(executingThread, false);
executingThread.Resume();
....
This works very good.
Since .NET Framework 2.0 the Suspend and Resume functions are marked
obsolete.
But the documentation of the StackTrace constructor still says "If a
StackTrace is created with a target thread that is not the current thread,
the target thread must first be suspended."
Can anyone please tell me how to suspend a thread without using
Thread.Suspend?
Thanks in advance!
Max
in my application I need to get the current executing location of a thread.
Until now I did this by
Thread executingThread;
....
executingThread.Suspend();
StackTrace executionLocation = new StackTrace(executingThread, false);
executingThread.Resume();
....
This works very good.
Since .NET Framework 2.0 the Suspend and Resume functions are marked
obsolete.
But the documentation of the StackTrace constructor still says "If a
StackTrace is created with a target thread that is not the current thread,
the target thread must first be suspended."
Can anyone please tell me how to suspend a thread without using
Thread.Suspend?
Thanks in advance!
Max