Is it possible to trap start and end events?

advertisements

I've inherited a reasonably large visual studio WinForms project in C# and VB.Net

While I'm working with it, I get messages in the Debug window like this:

The thread '<No Name>' (0x1194) has exited with code 0 (0x0).
The thread '<No Name>' (0x664) has exited with code 0 (0x0).
The thread '<No Name>' (0x14b0) has exited with code 0 (0x0).

In an effort to better understand the software, I'm curious to investigate what these threads are. Are there any tools I can use or or debugging options I can turn on that will allow me to break when new threads are created / terminated?

Note: I've stuck breakpoints on all the "... = new Thread" and "... .RunWorkerAsync()" code I can find and it's none of them.


I know it's not exact answer to your question, but here is some related information that have been posted to another question: Break on thread creation in Visual Studio debugger