Active Member
Posts: 8
Registered: ‎05-02-2007
Message 1 of 1 (87 Views)

Trouble with HostServices in RealDWG

87 Views, 0 Replies
05-25-2007 10:55 AM
Has anyone got a dispose pattern for RealDWG that works ?

As part of the set up you have to create a static class for HostApplicationServices and call Initialise on the Runtime with an instance of the class

When exiting apparently you call Terminate to shut this down.

Unfortunatley, when I create another new instance of my class I get a memory error when I call Initialise again, suggesting that terminate didn;t do what it suggested.

Has anyone else experienced this ?

The exception thrown by Acad is a System.AccessViolation, attempting to read or write protected memory - pretty scary !


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.