-2

Possible Duplicate:
memory allocation in matlab

I was searching for solving a memory leak problem in C project which calls a DLL generated from MATLAB, and I found this link. Are what is written in that link is true? Can any one explain it in some details?

My memory leak problem in some details is when I call a function in the dll for the first tile in a loop, every thing is great, for the rest some amount of memory is leak and it is not accumulate for example:- before calling the function for the fist one memory has 2000 MB free for the second time it has 1800 MB free. It is reasonable to be 1600 MB after the third calling, but it is still 1800 MB free and still 1800 MB for the rest of the program. why it is not increasing !!

I am using windows 7 x86 as an OS, MatLab 2011a, Thank you

Community
  • 1
  • 1
Omar Osama
  • 1,401
  • 3
  • 19
  • 29

1 Answers1

0

Are you 100% sure the memory leak is within the library? Do you know what the library function is doing?

There are examples of non-cumulative memory leaks from calling dlopen/dlclose (in other OSs, but still)

Mike
  • 47,263
  • 29
  • 113
  • 177