.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trouble with HostServices in RealDWG

0 REPLIES 0
Reply
Message 1 of 1
Thiss
228 Views, 0 Replies

Trouble with HostServices in RealDWG

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
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost