.NET

Reply
Active Member
8 Posts
0 Kudos
Registered: ‎05-02-2007
Post 1 of 1

Trouble with HostServices in RealDWG

91 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 !

Tks

Thiss
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!