From: Nick Mortimer on
I'm compiling a mex file and debuggin with VStudio. My mex file runs
fine in Matlab but crashes while debugging with a message "Corrupted
memory block found"?

Is it somthing to do with my debug config? can you set the heap
space?

Any suggestions would by helpful

Thanks

Nick