|
|
Re: matlab/mex function doesn't free memory
Posted:
Dec 14, 2008 3:20 PM
|
|
"Alex Berkovich" <alexber@tx.technion> wrote in message <gi3i3u$m5q$1@fred.mathworks.com>... > Hello all, > > I'm running a mex function that calls for c code (compiled in the same file as the mex function itself). > when a simulation is done, it seems matlab doesn't release the memory it uses since i see a growing amount of memory being used by matlab (via task manager). > > it reaches the limit of my computer and then either crashes or simply continues to run forever. > > any suggestion on how to solve this problem is very appriciated. >
should I free memory / variables / do other actions, other that free to any variable that i did memory allocation to?
thanks a lot!
|
|