stacktrace of a processthread

  • Thread starter Thread starter lesani
  • Start date Start date
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
 
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.
 
Back
Top