Archived:MEM_BAD_POINTER Error When Locally Compiling LabVIEW FPGA Code

Updated Dec 23, 2023

NI does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In

Software

  • LabVIEW
  • LabVIEW FPGA Module
  • Compile Cloud Service
  • FPGA Xilinx Compilation Tools

Operating System

  • Windows

Issue Details

I have developed an FPGA VI and when I try to compile it locally on my Windows 10 computer I am getting a dialog box error that pops up with a Smart Heap Error and says "MEM_BAD_POINTER". This does not always happen and it sometimes will happen on other projects as well. How do I fix this?
 

Solution

Local compilation via Xilinx tools is not supported on Windows 10 with LabVIEW FPGA versions before 2018. This can cause local compilation on your Windows 10 machine to have unpredictable behavior.

You have three options to fix this issue:  
  1. Migrate to using the Cloud Compile Service, which can be much faster.
  2. Upgrade to LabVIEW 2018 FPGA module.
  3. Use a machine running Windows 7 or earlier to develop or as a compile server.  

Additional Information

This error is a Windows Error and can occur because of an incompatibility between Windows 10 and Xilinx tools.