Message 1 of 4
How to use ResolveXrefs
Not applicable
09-04-2006
06:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone,
I'm working on getting xref information and encountered a crash after using ResolveXrefs method.
In my host application, I use RuntimeSystem.Initialize() at the beginning and call RuntimeSystem.Terminate() upon exit. When opening a drawing for getting xref information, ResolveXrefs(false, true) is called in order to resolve xref links.
The problem is if the drawing contain nested xrefs, and there are unresolved xref in the nested ones, calling to RuntimeSystem.Terminate() will cause crash.
The crash is a System.AccessViolationException. Here is what I got.
>?acdbCleanUp@@$$FYA?AW4ErrorStatus@Acad@@XZ()
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I have no idea what's wrong with it? Am I miss something when calling ResolveXrefs? Is there anything I need dispose? Do I need to lock the document?
Please give me some advice. Thanks.
I'm working on getting xref information and encountered a crash after using ResolveXrefs method.
In my host application, I use RuntimeSystem.Initialize() at the beginning and call RuntimeSystem.Terminate() upon exit. When opening a drawing for getting xref information, ResolveXrefs(false, true) is called in order to resolve xref links.
The problem is if the drawing contain nested xrefs, and there are unresolved xref in the nested ones, calling to RuntimeSystem.Terminate() will cause crash.
The crash is a System.AccessViolationException. Here is what I got.
>?acdbCleanUp@@$$FYA?AW4ErrorStatus@Acad@@XZ()
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I have no idea what's wrong with it? Am I miss something when calling ResolveXrefs? Is there anything I need dispose? Do I need to lock the document?
Please give me some advice. Thanks.