Home All Groups Group Topic Archive Search About

Process.GetProcessesByName creates many threads

Author
28 Jun 2006 10:32 PM
RobinC
Hi,

The 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

AddThis Social Bookmark Button