- realesmedia
- Posts: 85
- Joined:
Using components declared in the dynamic library dll
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
Re: Using components declared in the dynamic library dll
So, first of all, are you calling the corresponding `NsUnregisterComponent` functions? I assume yes, but just wanted to confirm.
- realesmedia
- Posts: 85
- Joined:
Re: Using components declared in the dynamic library dll
i use Noesis::NsUnregisterComponent<>
Re: Using components declared in the dynamic library dll
Could you please file a report and attach the minidump? (If possible with the latest 2.2 beta)