Jump to content

Add possibility to load and unload Plugins in runtime


photo

Recommended Posts

Hi,

I think that it may be usefull to have possibility to load and unload from memory plugins (e.g. with FreeLibrary() ) at runtime.

Cheers,

Jan

Link to comment
  • 1 year later...

Hi @unclebob,

Forgive for late answer. What I need is that when you use plugin_quit command in console then such plugin still ocupies memory and cannot be recompiled befor you quit Editor (the plugin file is locked). It would be very usefull if you add command FreeLibrary() in plugin_quit logic (or add possibility to free it in different way).

 

Cheers

Edited by Klimczak.Jan
Link to comment

Hi @silent,

Thanks for quick response. I just thinnk that there may be an extra issue that internal counter for load such plugin is bigger than one and that's why the plugin is not full unloaded. 

Both cases are rather easy to verify (find invocation of FreeLibbrary and for second just debug and count Load plugin invocation in code). 

Also fix it shouldn't take a long time :) and I cannot do it from loaded plugin myself ...

and at the moment it is the only possibility to execute own code in Editor.

Cheers

Edited by Klimczak.Jan
Link to comment
×
×
  • Create New...