[Mono-dev] SafeFileHandle

Greg Young gregoryyoung1 at gmail.com
Mon Jan 12 22:28:56 UTC 2015


_wapi_handle_unref_full: Attempting to unref unused handle 0x8a

I seem to be getting this message from the runtime not sure what could
be causing it. From some googling this appears to happen when you
close a file handle multiple times.

The only place close is called is :

protected override void Dispose(bool disposing)
        {
            if(_handle == null) return;
            Flush();
            _handle.Close();
            _handle = null;
           <snip>

Not sure how it could be called multiple times. I don't get any issues
on the CLR.

Any ideas?

Greg

-- 
Studying for the Turing test


More information about the Mono-devel-list mailing list