I have an external library which accepts a pointer to a buffer. Therefore, I pass in a LIBPOINTER. When I run my MATLAB code, I receive the following error:
ERROR: Corrupted Memory Block
MATLAB should be able to allocate a buffer of the right size automatically.
I'm executing the following code:
returnStringBuffer = libpointer('int8Ptr', 0);calllib('testLibrary', 'GetReturnString', returnStringBuffer)
Best Answer