By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,360 Members | 2,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,360 IT Pros & Developers. It's quick & easy.

stacktrace of a processthread

P: n/a
hi,
i want to find out stacktrace of a thread that is only have its thread
id (which have created in vc++ project),
i can find processthread by searching in ids of
System.Diagnostics.Process.GetCurrentProcess().Thr eads but
how can find stacktrace while stacktrace constructor only accept
system.threading.thread but not system.diagnostics.processthread?
tanx

Jun 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You aren't going to be able to do this. The StackTrace class only works
for managed processes, and only for the current process. You can't use it
to get the stack trace of an unmanaged program running in another process.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<le****@gmail.comwrote in message
news:11*********************@q69g2000hsb.googlegro ups.com...
hi,
i want to find out stacktrace of a thread that is only have its thread
id (which have created in vc++ project),
i can find processthread by searching in ids of
System.Diagnostics.Process.GetCurrentProcess().Thr eads but
how can find stacktrace while stacktrace constructor only accept
system.threading.thread but not system.diagnostics.processthread?
tanx

Jul 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.