Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-10

how to get a list of all thread id

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis

In my multi thread programs (I use multiple threads in my program and the windows dll that I used also used multiple threads), from time to time, there are some problems (e.g some exceptions are raised) which caused my program to free after the Application.Run.

The freezing seem to occur even after the finalization of units.

From the task manager, I can see that there are 2 running threads in my program (down from a dozen when the program was running ).

Using the gdb does not help me pin point which thread is running wild causing the freezing.

I am wonder if I can list out all running thread ids after Application.Run, I might find out what those 2 threads are.

Can I do that in windows 32-bit?
Dennis