get/detect corrupt/recoverable drawing file

get/detect corrupt/recoverable drawing file

autoDeveloper
Enthusiast Enthusiast
343 Views
0 Replies
Message 1 of 1

get/detect corrupt/recoverable drawing file

autoDeveloper
Enthusiast
Enthusiast

Hello,

 

I tried to use    using (Database db = new Database(false, false))

{        

        try        

         {              

                   db.ReadDwgFile(docname, FileOpenMode.OpenForReadAndWriteNoShare, false, null);                                   

                   db.CloseInput(true);      

         }      

        catch (System.Exception ex)      

         {      

         }

}  

 

But above code also crashing and show fatal error while running using accoreconsole.exe. Fatal error screenshot attached. Please help how console program can catch this issue.    

 

Thanks in advance

0 Likes
344 Views
0 Replies
Replies (0)