stacktrace of a processthread

L

lesani

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().Threads but
how can find stacktrace while stacktrace constructor only accept
system.threading.thread but not system.diagnostics.processthread?
tanx
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

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

Top