When a VI has the "Autopreallocate arrays and strings checkbox" checked it isn't removed when running on a PC.
With this option on and a conditional terminal in a for loop there is a crash source. (memorymanager.cpp line 566)
The snippet hasn't the option included, the attached VI does. The bug is checked in LV 2010-2011-2012. It appears after running and saving a (non-cosmetic) change or closing the VI.
Solved! Go to Solution.
This option is only available in the FPGA module. Do you compile the VI for an FPGA?
no it is a VI used by the PC host exe in a FPGA project, maybe it was previously used for the FPGA, but for the test you can compile it in LabVIEW without the FPGA module installed.
I concur that the behavior is not expected. Nevertheless, this option can only be set for FPGA VIs. Windows VIs don't have this checkbox at all.
Therefore please test if removing the check from the checkbox solves the crash issue on Windows.
Removing the checkbox solves the issue, but one would expect that the checkbox doesn't affect execution on a Windows PC, certainly won't crash LabVIEW.
Thanks for reporting this.
I transfered it to R&D (CAR # 392232).
The crashing behavior has been fixed in LabVIEW 2015! Having the autopreallocate array option checked on an FPGA VI should no longer affect the execution when switched to a Windows target.