Compiled a VI as a DLL. One of the outputs is an array of LabVIEW strings. Interface defines the call as:
int32_t __cdecl function(..., LStrHandleArray *X, ...);
and gives me three managing functions
LStrHandleArray __cdecl AllocateLStrHandleArray (int32 elmtCount); MgErr __cdecl ResizeLStrHandleArray (LStrHandleArray *hdlPtr, int32 elmtCount); MgErr __cdecl DeAllocateLStrHandleArray (LStrHandleArray *hdlPtr);
I allocate a LStrHandArray to pass to my function and call the function as
LStrHandleArray X = AllocateLStrHandleArray(0); MgErr error = function(..., &X, ...);
Everything works fine. Do I need to call?
MgErr error DeAllocateLStrHandleArray (&X);
If I do it returns an error (18438). Not too worried about not calling it, as the code exits a couple of lines below, but just wondering what it is and how to convert that to an error message.