LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autopreallocate option cause crash

Solved!
Go to solution

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.

crash.png

0 Kudos
Message 1 of 7
(3,017 Views)

This option is only available in the FPGA module. Do you compile the VI for an FPGA?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(3,013 Views)

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.

0 Kudos
Message 3 of 7
(3,010 Views)

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.

 

thanks,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 7
(3,007 Views)

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.

0 Kudos
Message 5 of 7
(3,002 Views)
Solution
Accepted by topic author Bert_INCAA

Hello Bert,

 

Thanks for reporting this.

 

I transfered it to R&D (CAR # 392232).

 

Regards,

Cédric | NI Belgium
0 Kudos
Message 6 of 7
(2,970 Views)

Hey everyone,

 

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.

0 Kudos
Message 7 of 7
(2,833 Views)