g_module_close() did not really unload the module ?



Hi,

I did the following test:

g_module_open()
... do something make sure g_module_open() success ...
g_module_close()
... remove the .so file
g_module_open()

And I found the 2nd g_module_open() still success even the .so file
is removed !!!
It looks like the g_module_open() will cache the library.
I did not use g_module_make_resident().
Is this normal ? or a bug ?  How to fix this ?
Thanks a lot.

ps. I'm using glib2-2.14.1-4.2 (OpenSuSE 10.3)

Regards
KC


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]