Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Seeking a way to find a memory leak (LoadLibrary and FreeLibrary)

Avatar of 4eyesgirl
4eyesgirl asked on
C++
15 Comments1 Solution2550 ViewsLast Modified:
Hi expert,

Here is my questions -
1. What is the different when I implicitly link in the DLL in the VC project vs. calling LoadLibrary and FreeLibrary in the source codes?
2. In my testdriver, I called LoadLibrary and FreeLibrary multiple times (> 5000), and I see the private byte in perfmon slowly increase to about 6MB.  Is this enough of evident of telling me the DLL that I load has memory leaks?  If so, what will be the approach to trace this issue?  If not, what will cause the 6MB showing in Perfmon?  I was expecting a straight line in the perfmon since I think the freeLibrary() should give back what it took from loadLibrary().

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of jkr
Commented:
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers