[Mono.Debugger.Soft] Don't make Connection disposable.
[mono.git] / mcs / class / Mono.Debugger.Soft / Mono.Debugger.Soft / VirtualMachine.cs
index 440e1c82f05fa37ba6aac7ecefc1242597042773..c1693e683f3d203cfe8153f92610f2843299e46d 100644 (file)
@@ -134,13 +134,17 @@ namespace Mono.Debugger.Soft
                        conn.VM_Exit (exitCode);
                }
 
-               public void Dispose () {
+               public void Detach () {
                        conn.VM_Dispose ();
                        conn.Close ();
-                       conn.Dispose ();
                        notify_vm_event (EventType.VMDisconnect, SuspendPolicy.None, 0, 0, null);
                }
 
+               public void ForceDisconnect ()
+               {
+                       conn.ForceDisconnect ();
+               }
+
                public IList<ThreadMirror> GetThreads () {
                        long[] ids = vm.conn.VM_GetThreads ();
                        ThreadMirror[] res = new ThreadMirror [ids.Length];