Touch Panel applications allocate all the memory the application needs as the application runs.
Touch Panel applications free memory when the application stops running or returns. As a result, memory usage can depend on the run-time behavior and can be difficult to predict. However, the Touch Panel application allocates uninitialized shift registers the first time it encounters them and frees them only when the application stops. Touch Panel applications reset controls to the default value each time you run or call a Touch Panel application, but Touch Panel applications do not reset uninitialized shift registers.
Use the PDA Memory VIs to manage memory on a Touch Panel device.