Beispiel #1
0
 public void Dispose()
 {
     if (this.JVM.NativePointer != IntPtr.Zero)
     {
         this.JVM.DestroyJavaVM();
         Marshal.FreeCoTaskMem(this.JVM.NativePointer);
         this.JVM = null;
     }
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            try
            {
                var jvm = new JavaVirtualMachine(args);
                jvm.Run();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.ReadKey();
        }
Beispiel #3
0
 internal JavaVM(IntPtr ptr)
 {
     this.JVM = new JavaVirtualMachine(ptr);
 }