> I also have a memory leak. You are the second person I have heard
> mention uninitialized shift registers. Does this cause a memory leak?
> If so, why? Also, what is the profiler?
An uninitialized shift register can be read from, modified, and written
to. This allows you to store data in memory until you want to access
it. It also allows you to store and store and store data and never
release any of it. If the logic of when to store is not correct, an
array stored in shift registers, locals, or globals, could continue to
grow until it is using all of memory. It is often called a memory leak
since this isn't what the author intended their logic to do, but LV
still knows about the memory, and so does the OS. The memory will be
released
automatically when the VI goes out of memory and when LV is Exited.
The profiler is under the Tools>>Options menu and it will make timing
and memory usage measurements on your VIs to help you track down
problems or optimize operation.
Greg McKaskle