Bad file descriptor in File destructor

unDEFER via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 13 03:28:30 PDT 2017


On Thursday, 13 July 2017 at 08:53:24 UTC, Moritz Maxeiner wrote:
> Where does that `File` come from? If it's std.stdio.File, that 
> one is a struct with internal reference counting, so it 
> shouldn't crash in the above. Could you provide a minimal 
> working (in this case crashing) example?

Yes File is std.stdio.File. And I can't provide a minimal 
crashing example because this code crashes very rarely.

I just want to put try/catch and don't know where to do it.


More information about the Digitalmars-d-learn mailing list