Notifications
Clear all

[Closed] Unload .Dll , using as a plugin?

Awesome, so I got it to work Thanks alot Denis!

I just added my TreeViewMS .cs into my file , instead of including the .DLL. So now when I do the readbytes, it all loads in just fine :). This will make modification MUCH faster now

Edit: Nevermind… It seems to load it fine… but I need to unload is somehow so it updates properly. I have a global hanging onto the dotnetobject, so I need to dispose that or something… except dispose doesnt work.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

i know you can

Well, unfortunately I went back to loading the .DLL how I was, because the TreeView was giving me issues. Also, that and max seemed to hold onto my old data, but I could over-write my dll. So even though I could over-write it, it didn’t update in max anyways.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

after you reload an assembly you have to use CreateInstance method to create objects from newly loaded assembly.
dotnetobject and dotnetclass methods keeps create objects and classes of first loaded assembly (not the last one).

Ah, ok. Well maybe I’ll give it a shot again. That Treeview gives me issues though. Right now Im including it as a DLL. I tried adding the project as a reference, and it was working, but then I was getting errors all of a sudden.

Page 2 / 2