runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Intermittent Unhandled Exception: System.Exception: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) in unit testing (win8.1)

Open bpschoch opened this issue 11 years ago • 2 comments

I get very occasional errors in my unit tests for pipes that I'm developing, but they occur after the unit tests are successful: xUnit.net console test runner (32-bit .NET Core) Copyright (C) 2014 Outercurve Foundation. Discovering: System.IO.Pipes.Tests Discovered: System.IO.Pipes.Tests Starting: System.IO.Pipes.Tests Finished: System.IO.Pipes.Tests === TEST EXECUTION SUMMARY === System.IO.Pipes.Tests Total: 108, Errors: 0, Failed: 0, Skipped: 0, Time: 0.620s Unhandled Exception: System.Exception: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) at System.Threading.TimerQueue.DeleteAppDomainTimer(IntPtr handle) at System.Threading.TimerQueue.AppDomainTimerSafeHandle.ReleaseHandle() at System.Runtime.InteropServices.SafeHandle.InternalFinalize() at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing) at System.Runtime.InteropServices.SafeHandle.Finalize()

bpschoch avatar May 07 '15 21:05 bpschoch

Do you have a way to repro it? Do you have a crash dump? Who uses the SafeHandle? Is it System.IO.Pipes or the test itself?

karelz avatar Oct 28 '15 18:10 karelz

@bpschoch, closing this issue since there hasn't been any activity in a while. Please feel free to reopen if necessary.

tzwlai avatar Jan 15 '16 00:01 tzwlai