Message 1 of 8

Not applicable
04-22-2015
03:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some code that works well in AutoCAD versions 2012-2015 which opens a transactions, looks up some object info, then disposes the transaction. In 2016 this code thows an AccessViolationException ("Attempted to read or write protected memory. This is often an indication that other memory is corrupt.") as soon as Dispose() is called. I have removed transactions in a few spots in code, using direct reads through the ObjectId, which works just fine. Everytime I replace a chunk of code with this method the next chunk that uses a Transaction starts puking. Obviously something is very wrong or very different in AutoCAD 2016 if I cannot even use a transaction.
Solved! Go to Solution.