dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] GetCurrentProcess().Id crashes


From: Bruno Haible
Subject: [Pnet-developers] GetCurrentProcess().Id crashes
Date: Sat, 20 Dec 2003 16:48:26 +0100
User-agent: KMail/1.5

Using pnet-0.6.0 on Linux.

GetCurrentProcess().Id crashes. It should return the value of getpid() instead.

================================== hello.cs ================================
using System;
using System.Diagnostics;
class Hello {
  static void Main() {
    Console.WriteLine(Process.GetCurrentProcess().Id);
  }
}
============================================================================

$ cscc -winforms hello.cs -o hello.exe
$ ilrun hello.exe
Uncaught exception: System.InvalidOperationException: Es trat eine unerlaubte 
Operation auf
        at System.Diagnostics.Process.Exists() in ./Diagnostics/Process.cs
        at System.Diagnostics.Process.get_Id() in ./Diagnostics/Process.cs
        at Hello.Main()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]