Since LabVIEW manages its own data in the background, one needs to be careful while modifying the memory allocated for these data variables. One such case is when we resize the length or Arrays of Strings passed from LabVIEW to a DLL or CIN. To avoid any illegal access of memory in such instances, LabVIEW provides special memory management functions. More information on these functions and their usage is documented in 'LabVIEW Code Interface Reference Manual'.
The attached example shows how you can use CIN Memory Management functions to manipulate the Arrays and Strings passed from LabVIEW to DLL. The DLL is built using LabWindows/CVI 5.5, but the same functions can be used in other compilers like Visual C/C++ or Visual Basic.
Marc