NSPR/NSS memory leak

Vinu <[email protected]>
Newsgroups gmane.comp.mozilla.devel.nspr
Organization http://groups.google.com
Message-ID <[email protected]>
Hi All,

I have a dll in Windows which uses NSS 3.11.4 and NSPR 3.6.4.
The dll does a PR_Init during Load.

Now, I have an application(.exe)which loads this dll dynamically using
LoadLibrary and then unloads it using FreeLibrary.
So after LoadLibrary and FreeLibrary I expect NO memory leak in my
application.

But however i see an increase of 2 threads the moment a call to
PR_Init is made. And also there is a memory leak of 4K after
FreeLibrary.

Can anybody guess if the NSPR library is completely deinitialized and
removed from memory when my above program calls FreeLibrary???? I
believe this should be the case.

Also, If i call PR_Cleanup as part of my FreeLibrary(Dll Unload)
routine, then the whole application just hangs????

Can anyone help me out here!

Thanks
Vinu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.