.NET

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

Trouble with HostServices in RealDWG

85 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.