There is not enough memory to complete this operation

When calling an FLL function you get this error messages, when the FLL creates a new string but doesn't specify a string length:
Value ret;
ret.ev_type = 'C';
ret.ev_handle = hDest;
_RetVal( &ret );


ret.ev_length = bytesDest;