Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This one really has me stumped.
I have two custom objects derived from AcDbBlockReference. Lets call them A and B. I created B first, so A is the last item in the database. By design, if A is dropped on B (i.e., moved to the same position) A gets deleted. This causes AutoCAD 2018 (and 2017) to crash. However:
- It only crashes if A is the last item in the database.
- If I draw anything else the deletion is OK.
- I can delete A manually without a problem in all cases.
- AUDIT shows no (detectable) problems with the DWG.
- As far as I can tell, there are no transactions left dangling.
- The objects are appropriately opened for write.
- The deletion goes through by DatabaseReactor::objectErased without issue.
- If I skip the automatic object deletion....no crash.
Unfortunately, the call stack isn't much use - an Access Violation somewhere in acdb22.dll. It seems very likely the result of something I'm doing (or not doing) - but I don't know how to find out what.
Any ideas?
Thanks
Solved! Go to Solution.