realesmedia
Topic Author
Posts: 85
Joined: 18 May 2016, 10:26

Using components declared in the dynamic library dll

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

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2588
Joined: 20 Jan 2012, 17:18
Contact:

Re: Using components declared in the dynamic library dll

18 Jan 2019, 15:37

So, first of all, are you calling the corresponding `NsUnregisterComponent` functions? I assume yes, but just wanted to confirm.
 
realesmedia
Topic Author
Posts: 85
Joined: 18 May 2016, 10:26

Re: Using components declared in the dynamic library dll

18 Jan 2019, 18:26

i use Noesis::NsUnregisterComponent<>
 
User avatar
jsantos
Site Admin
Posts: 2588
Joined: 20 Jan 2012, 17:18
Contact:

Re: Using components declared in the dynamic library dll

20 Jan 2019, 15:44

Could you please file a report and attach the minidump? (If possible with the latest 2.2 beta)
 

Who is online

Users browsing this forum: Google [Bot] and 3 guests