Ejemplo n.º 1
0
        public void Dispose()
        {
            WritePipeMessage(eMessage.eMessage_Shutdown);
            WaitForCompletion();
            instanceDll.Dispose();

            pipe.Dispose();
            mmva.Dispose();
            mmf.Dispose();
            rbuf.Dispose();
            wbuf.Dispose();
            foreach (var smb in DeallocatedMemoryBlocks.Values)
            {
                smb.Dispose();
            }
            DeallocatedMemoryBlocks.Clear();
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     watchdogEvent.Dispose();
     process.Kill();
     process.Dispose();
     process = null;
     pipe.Dispose();
     mmva.Dispose();
     mmf.Dispose();
     rbuf.Dispose();
     wbuf.Dispose();
     foreach (var smb in DeallocatedMemoryBlocks.Values)
     {
         smb.Dispose();
     }
     DeallocatedMemoryBlocks.Clear();
 }