LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Howto Free memory in CIN

How do I free memory that was allocated with the function:NumericArrayResize.?
0 Kudos
Message 1 of 3
(2,656 Views)
scn;

How are you using the "NumericArrayResize" function? You should use it to resize an array or string that was provided from LabVIEW, thus LabVIEW manage the memory. You only need to account for those variables you create for which memory was dynamically allocate within your code. In those cases, you need to manually delete those variables before exiting your routine.

Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,656 Views)
I believe the command you need is AZDisposeHandle or DSDisposeHandle. Either should work--AZ and DS refer to different "Memory Zones" . You can learn more about these commands and Memory Zones (page 4-29) by opening LabVIEW 6.1 >> help >> search the LabVIEW bookshelf. This launches a pdf of all the shipping documentation. Look for "Using External Code in LabVIEW" . This discusses the construction of CINs and has a section on CIN commands.
0 Kudos
Message 3 of 3
(2,656 Views)