Date: Dec 14, 2008 1:09 PM
Author: Alex Berkovich
Subject: matlab/mex function doesn't free memory

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.