Bad file descriptor in File destructor

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


Seems I have found. I must do:
try{
     File file;
     try {
         file = File(path);
     }
     catch (Exception exp)
     {
         return;
     }

     //Some actions with file
}
catch (ErrnoException)
{
     return;
}




More information about the Digitalmars-d-learn mailing list