[Mono-devel-list] Processes in Mono

cmajkrzak at charter.net cmajkrzak at charter.net
Thu Jul 29 15:19:06 EDT 2004


I'm trying to write an app that checks to see if a given pid exists.  I've written the code, and it works in Windows with MS's framework, but with mono under linux im getting:

Unhandled Exception: System.ArgumentException: Can't find process with ID 21245
in <0x0005e> System.Diagnostics.Process:GetProcessById (int)
in <0x00172> StatusServer.statusserver:shoutcaststatus (string)
in <0x0010c> StatusServer.MainS:Main (string[])

but....

# ps 21245
  PID TTY      STAT   TIME 
21245 ?        SN     0:08 

Can anyone clue me in to why mono isn't finding the process even though it exists?  This also relates to another program I tried to write that would kill a process, worked in Windows, but did not in linux under mono.

Thanks.




More information about the Mono-devel-list mailing list