|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Process.GetProcessesByName creates many threadsThe call to Process.GetProcessesByName() seems to create several threads that remain for the duration of the calling application. I have a very simple console app, Process[] arrProcs = Process.GetProcessesByName( "foo.exe" ); Console.WriteLine( "Done" ); if I set a bp at the call, watch Task Manager, I can see the thread count of my app jump by 8 after the call returns. I only see one thread in the "Threads" debug window. I also have this call is in a full-blown app. The thread count never drops. Any ideas? -- Thanks, -Robin |
|||||||||||||||||||||||