Try running it more than once, close matlab open again and run without recompiling a number of times, I'll be surprised if it works.
Having said that the problem is fixed by using
mexMakeMemoryPersistent(array)
Hi folk!
Thanks for taking time to read this. I am trying to create a dll in Matlab 6.5.1.199709 (R13) Service Pack 1
I've reduced it down to a smaller example:
#include "mex.h"
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
char** fnames;
char*...