Bthorp is right, memory leaks could be the cause of this. There is a function called CVIDynamicMemoryInfo in the utility library that can help you track down a leak. It will show you all of the dynamically allocated (malloc, calloc, etc) buffers that are existing in your program.
Best Regards,
Chris Matthews
National Instruments