AutoCAD 2022 crashes with eNotOpenForWrite in a ARX/DBX/.Net custom app when opening an older dwg file

AutoCAD 2022 crashes with eNotOpenForWrite in a ARX/DBX/.Net custom app when opening an older dwg file

adam.baranski
Observer Observer
1,164 Views
3 Replies
Message 1 of 4

AutoCAD 2022 crashes with eNotOpenForWrite in a ARX/DBX/.Net custom app when opening an older dwg file

adam.baranski
Observer
Observer

I have a ARX/DBX/.Net application that integrates with AutoCAD 2021 or AutoCAD 2022. This application allows the user to use and save custom objects in the dwg. Drawing files that include those custom objects could be saved and opened in AutoCAD 2021 without any issues. In AutoCAD 2022 some dwg files don’t open anymore but they open fine in AutoCAD 2021. The error message that is displayed in AutoCAD 2022 during dwg file open is
---------------------------

AutoCAD Error Aborting

---------------------------

INTERNAL ERROR:  !dbobji.cpp@8673: eNotOpenForWrite

---------------------------

OK  

---------------------------

You can also reproduce this issue by opening AutoCAD 2022 (with my application integrated), creating a new drawing and importing my database file. Saving the dwg file and reopening it works fine too. Then you type XREF and insert a dwg reference to the problematic dwg file (when prompted for insertion point type 0 and press enter). Save As again to a new dwg. Reopen the dwg and it will crash with the above error message. AutoCAD crashes hard and you get the AutoCAD crash reporting dialog.

 

Are you aware of any changes in AutoCAD 2022 that could have affected my application like that? Are there any debugging steps that I could take to pin point what goes wrong and where? I tried setting up breakpoints throughout my code in order to get the call stack and handle the exception in Visual Studio before it crashes AutoCAD but nothing gets hit. Running Windows 10 1909 but this happened on other machines with various Windows 10 versions. Any help would be greatly appreciated.

0 Likes
1,165 Views
3 Replies
Replies (3)
Message 2 of 4

Valentin_CAD
Mentor
Mentor

@adam.baranski ,

 

Welcome to the AutoCAD forum.

 

Consider the suggestions on these links:

If none of the suggestions resolves the issue, do a Clean Uninstall (link).



Select the "Mark as Solution" if my post solves your issue or answers your question.

Seleccione "Marcar como solución" si mi publicación resuelve o responde a su pregunta.


Emilio Valentin

0 Likes
Message 3 of 4

Jesse.Dringoli
Observer
Observer

We are still encountering this problem with AutoCAD 2022 and now also in 2023. The options offered do not help as this can be reproduced on any computer and any file created in 2010 and earlier, with out application loaded. Please advise.

0 Likes
Message 4 of 4

pendean
Community Legend
Community Legend

@Jesse.Dringoli wrote:

We are still encountering this problem with AutoCAD 2022 and now also in 2023.


Start here

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Error-...

and if not...

Start a support ticket through your subscription portal as explained here https://knowledge.autodesk.com/customer-service/account-management/users-software/support-options#:~....

 

 

0 Likes