On Monday, 25 February 2013 at 01:09:32 UTC, Steven Schveighoffer wrote:
Did you try SetHandleInformation directly on that handle? It's still slightly possible that some other call caused the exception while this one was being thrown.
I put a writeln in the if, so I'm quite sure that it was SetHandleInformation that failed.
