I'm about to write a Mex File, so I can use my c++ code in MATLAB.
This code is built around a singleton class (in c++).
I've read that for memory to be persistent I have to use MxAlloc isntead of malloc/new, is this true for all memory I use? I.e, the class I have uses vectors, and vectors automatically allocate new memory, using standard mechanisms.
So will a vector in a class allocated using MxAlloc have trouble keeping it's memory?