views:

26

answers:

2

Hello,

I am trying to launch background processes using System.Diagnostic.Process API . It launches every process e.g notepad.exe, all native processes and all windows form base processes. But this unable to launch pure managed GUI less assemblies. Task Manager not showing those assemblies listed in its list as seperate process. Niether exception occure nor any error code returned.

Is there any other way to launch background processes on demand using Process.Start for pure managed assemblies properly visible even for task manager

Regards Usman

A: 

If you are working with a managed assembly, you should check out the BackgroundWorker class

phsr
It tells if somehow your GUI processes facing interrupts and hindrances then you can create some background processes allied with seperate thread. I wnat my processes to be launch on demand as child processes which Process.Start doing perfectly with Windows.Forms and other Native processes. But when pure managed assemblies needs to be launch as background seprate processes visible to task manager , it does'nt launch them and task manager unable to show them
Usman
Thnx alot everybody..actually it go aways after creating. I put message box and everything fine.
Usman
+1  A: 

Use Task Manager's Processes tab, not the Applications tab. The latter one only lists processes that have a window. Also consider that the process simply exited quickly after starting it.

Hans Passant