Using components declared in the dynamic library dll
Posted: 18 Jan 2019, 13:10
Hi.
use case
---------------------------------------------------
Engine.exe
InitializeNoesis()
.....
::LoadLibrary("Plugin.dll");
......
::FreeLibrary("Plugin.dll");
FreeNoesis:
Noesis::GUI::Shutdown(); Crash!!!!!
exit:
----------------------------------------------------------------
Plugin.dll
class MyComponent : public Noesis::BaseComponent
...
init:
NsRegisterComponent<MyComponent>();
free:
NsUnregisterComponent<MyComponent>();
-----------------------------------------------------------------------
I assume, after unloading dll there are refs to typeid (MyComponent).
how do i properly unregister the components and clean up the resources created in the dll?
thank
use case
---------------------------------------------------
Engine.exe
InitializeNoesis()
.....
::LoadLibrary("Plugin.dll");
......
::FreeLibrary("Plugin.dll");
FreeNoesis:
Noesis::GUI::Shutdown(); Crash!!!!!
exit:
----------------------------------------------------------------
Plugin.dll
class MyComponent : public Noesis::BaseComponent
...
init:
NsRegisterComponent<MyComponent>();
free:
NsUnregisterComponent<MyComponent>();
-----------------------------------------------------------------------
I assume, after unloading dll there are refs to typeid (MyComponent).
how do i properly unregister the components and clean up the resources created in the dll?
thank