Hi Keith,
I've just got some further information on this problem. Here are some
comments from our dev team engineers:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
So far there's no safe way to do this - you have to suspend the thread, and
suspending the thread is an unsafe operation. It might get suspended
somewhere while it holds a particularly dangerous lock. When you try and
walk the stack you might need that lock and you'll hit a deadlock.
The only safe way would be to have the thread cooperate and grab its own
stack trace and hand it off to you. Or if you're just doing this for
diagnostic purposes you could suppress the warning on calling the obsolete
method and do it anyway - just make sure to cross your fingers and avoid
black cats, don't break any mirrors, etc¡
In addition, I also recommend send this feedback to our product feedback
center(connect site):
http://connect.microsoft.com/feedback/default.aspx?SiteID=210
thus, our dev team can also get informed on this feedback.
Thank you for your understanding!
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Steven Cheng[MSFT] - 16 Jul 2007 14:34 GMT
Hi Keith,
Do you have any further concerns on this or if you have any other questions
need help, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Keith Dorken - 19 Jul 2007 20:46 GMT
I went to post on the connect.live site, and discovered someone else had
posted almost the exact same thing. I added our comments to that thread.
Thanks, Keith
> Hi Keith,
>
[quoted text clipped - 8 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.