#1 2012-12-04 17:19:10

Lucas
Member
Registered: 2012-12-04
Posts: 2

Issue with Activator Unload method

Hi,

I have got a trouble using CppMicroServices, indeed when I load a dll using LoadLibrary (sorry I am using windows) my activator "Load(context)" method is called, but when I unload a dll with FreeLibrary nothing happen Unload method is reach only when I close my application. Have you got an idea about this ?

Thanks,
Lucas.

Offline

#2 2012-12-04 17:25:00

sascha
Administrator
Registered: 2012-05-04
Posts: 45

Re: Issue with Activator Unload method

Hi Lucas,

what is the return value of your FreeLibrary call? If it is false, then there are probably still other libraries loaded which keep a reference count on the library you are trying to unload.

- Sascha

Offline

#3 2012-12-05 12:15:17

Lucas
Member
Registered: 2012-12-04
Posts: 2

Re: Issue with Activator Unload method

Yes indeed other libraries had depedencies on this dll, thanks !

Offline

Board footer

Powered by FluxBB