Example #1
0
 protected override bool ReleaseHandle()
 {
     if (VirtualMachine == null)
     {
         throw new InvalidOperationException("Wren handles must be associated with a Wren VM!");
     }
     WrenInterop.wrenReleaseHandle(VirtualMachine.Handle, handle);
     return(true);
 }
Example #2
0
 protected override bool ReleaseHandle()
 {
     // Adapted from https://www.meziantou.net/stop-using-intptr-for-dealing-with-system-handles.htm
     WrenInterop.wrenFreeVM(handle);
     return(true);
 }