release refernced dll from iLogic

release refernced dll from iLogic

omartin
Advocate Advocate
439 Views
3 Replies
Message 1 of 4

release refernced dll from iLogic

omartin
Advocate
Advocate

I created a helloWorld dll with one sub that excepts an inventor document.

and display the filename with msgbox

 

in an I logic rule I ref the dll and make an object, and call the sub.

 

That works fine, however; if I try to make changes to the dll it cant compile because it is in use. I have to restart inventor

 

Is there a way to unload/release the dll from being used after the rule has finished running?

 

Was my reply Helpful ? send a Kudos or accept as solution
0 Likes
440 Views
3 Replies
Replies (3)
Message 2 of 4

JamieVJohnson2
Collaborator
Collaborator

This behavior is common throughout most programs that load dlls.  They stay persistent until the main thread closes.  The only system I know that has a work around is the 'Edit and Continue' methods of Visual Studio.  So there has to be a way, but even then some changes can not continue without reloading.

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 4 of 4

omartin
Advocate
Advocate

Hey GeorgK this seems like it will work I'm trying to convert it to VB and getting hung up on the MarshalByRefType portion

 

I will keep trying, thanks

Was my reply Helpful ? send a Kudos or accept as solution
0 Likes