Search found 2 matches

by gbarcan
Mon Jul 30, 2012 5:46 pm
Forum: madBasic
Topic: Collecting callstacks of all threads within the process
Replies: 2
Views: 12492

Re: Collecting callstacks of all threads within the process

Enumerating threads within the process using the tool help library: http://blogs.msdn.com/b/oldnewthing/archive/2006/02/23/537856.aspx #include <stdio.h> #include <windows.h> #include <tlhelp32.h> int __cdecl main(int argc, char **argv) { HANDLE h = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0); if...
by gbarcan
Thu Jul 26, 2012 3:50 pm
Forum: madBasic
Topic: Collecting callstacks of all threads within the process
Replies: 2
Views: 12492

Collecting callstacks of all threads within the process

Can I get some advice on how to collect the callstacks of all running threads in the process programatically ?
We have a monitoring thread and we would like at certain times to collect the callstacks for all threads and write them to a file.