Welcome to %s forums

BrainModular Users Forum

Login Register

unload - release usr-dlls

Tell us what you'd like Usine to do
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 19 Jul 2017, 08:58

When working on user modules with sdk, man have to make a lot of back and forth usine<->compiler.
Actually, unless missed someting, the only way to update code is to recompile the module, open usine, load the module, then if want to twak again the code, close usine, recompile, reopen ect..
wich end up being very long for loads but minor tweaks, debug ect..

I thought this could be speeded up a bit by keeping usine open, clearing the workspace, then reload workspace.

but then here the compiler prevents me to overite the module, as it was still 'open'/locked' by usine.exe , even if the workspace is now empty.

Could there be a way to relase/close the dll/usr module so it can be overwritten maybe?, that would be already great speed up time.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 20 Sep 2017, 12:39

ok,
I'll add an 'UnloadLibrary' after the module is deleted.
I hope it does the trick, without guaranty.

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 21 Sep 2017, 12:44

+1

I just started to use the SDK (warning...lol) :lol:

23fx23 is correct....wow very difficult for me...I am lost with certain things to begin with and constantly having to open/close because I am still in that trial and error phase.

Definitely think this is good thing to do.
Which release should we look for?

-s
"Every act of creation is first an act of destruction." -Picasso

sm_jamieson
Member
Posts: 555
Contact:

Unread post by sm_jamieson » 22 Sep 2017, 21:17

senso wrote:ok,
I'll add an 'UnloadLibrary' after the module is deleted.
I hope it does the trick, without guaranty.
Of course there can be more than one module in the workspace using the same DLL, so you have to keep a count and only unload
the DLL when there are no more modules using it. Else as soon as one module is deleted the other ones will crash.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Sep 2017, 21:32

Of course there can be more than one module in the workspace using the same DLL, so you have to keep a count and only unload
the DLL when there are no more modules using it. Else as soon as one module is deleted the other ones will crash.
the counter is managed by the system (OSX, WIN) it self. So no risk!
That's why I said "without guaranty"...

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 22 Sep 2017, 21:46

Personally if simpler i would already enjoy with just closing reopening the wksp wich would mean all modules are gone anyway. Unless gigantuc wksp wich is not the case when im debugging its even faster than delete, recreate and rewire the module

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests