Jump to content

Add possibility to load and unload Plugins in runtime


photo

Recommended Posts

Posted

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

Posted

Hi there!

Could you please provide a use case for that feature? What are you trying to achieve?

  • Like 1
  • 1 year later...
Posted (edited)

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
Posted (edited)

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
Posted

Yep, I understand that inconvenience.

We also plan to release initial version of Editor2 API in the 2.10 SDK update. It would no be fully functional yet, but maybe it will allow some new possibilities that you currently can't achieve.

  • Like 2

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...