I have a mex compiled using Visual Studio with Matlab 2012a The mex logic is:
create a 3d volume (memory allocation)
project a volume into an image
delete the volume (free memory)
when I call the mex and clear it (using Matlab 2012a) the Matlab gets stuck on 'Busy' state.
When I run the same mex file from Matlab 2019 this problem doesnt appear.
I checked and the memory the mex allocate is being freed before I clear the mex
Does anyone know how to solve this issue?