GetObject method of transaction class gives exception
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
1. Draw line.
2. Save objectId of line to file.
3. Close document.
4. Open document
5. Load ObjectId from file
6. Try to get line object by this objectId
7. Get System.AccessViolationException: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
GetObject method of transaction class gives exception (that writed above) when I'm trying to access object after reopening drawing. That's all
Entity ent = Transaction.GetObject(id, OpenMode.ForWrite) as Entity;
System.AccessViolationException: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
any idea why?
Link copied