Page 1 of 1

Using components declared in the dynamic library dll

Posted: 18 Jan 2019, 13:10
by realesmedia
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

Re: Using components declared in the dynamic library dll

Posted: 18 Jan 2019, 15:37
by jsantos
So, first of all, are you calling the corresponding `NsUnregisterComponent` functions? I assume yes, but just wanted to confirm.

Re: Using components declared in the dynamic library dll

Posted: 18 Jan 2019, 18:26
by realesmedia
i use Noesis::NsUnregisterComponent<>

Re: Using components declared in the dynamic library dll

Posted: 20 Jan 2019, 15:44
by jsantos
Could you please file a report and attach the minidump? (If possible with the latest 2.2 beta)

Re: Using components declared in the dynamic library dll

Posted: 20 Jan 2019, 20:11
by realesmedia