FreeLibrary function.

This is the forum for general discussion.

Moderator: 2ffat

FreeLibrary function.

Postby barisirhan » Mon Nov 19, 2012 4:16 am

Hi everybody,

Well. I have a problem and I hope somebody around here could come up with an idea how to solve it. I use LoadLibrary() and FreeLibrary() functions to dynamically link and unlink a DLL to my program. Everything works fine but what I have realized is that after call to FreeLibrary function total amount of memory allocated during LoadLibrary function is NOT totall freed but partly. Is there anybody who has an idea how to free this small amount of memory. Thank you...
barisirhan
 
Posts: 4
Joined: Thu Oct 22, 2009 5:17 am

Re: FreeLibrary function.

Postby rlebeau » Mon Nov 19, 2012 11:49 am

barisirhan wrote:Everything works fine but what I have realized is that after call to FreeLibrary function total amount of memory allocated during LoadLibrary function is NOT totall freed but partly.


That could just be normal memory caching, or it could be a true memory leak. There is no way to know, or do anything about, unless you have the DLL's source code to recompile with.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1390
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron