LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CA_SafeArrayTo1DArrayEx Result Free

I use CA_SafeArrayTo1DArrayEx to get the 1D C-String array and free the memory with CA_FreeMemory. If I just free the array itself, my program work well, but I DO worry about memory leak. So I free every element in the array firstly, then free the array. In this time, my program work as well as before in DEBUG mode, but it throw out a fatal error("Access Vioalation") in the RELEASE mode.
 
Is it work differently in DEBUG mode and RELEASE mode? What is the proper calling method?
0 Kudos
Message 1 of 1
(2,885 Views)