Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

LabVIEW Internet Toolkit 6.0 has memory leak in XML Load File Method

Primary Software: LabVIEW Toolkits>>Internet Developers Toolkit
Primary Software Version: 6.0
Primary Software Fixed Version: 6.0
Secondary Software: N/A

Problem: In the LabVIEW Internet Toolkit 6.0, why is there a 56K memory leak that occurs with each new call to the XML Load File method?

Solution: Currently, when opening a reference to an XML file using the XML Load File method, the file reference is not closed until you exit LabVIEW, hence the memory leak. By allocating memory in this way, the Internet Toolkit allows parsing and modifying of multiple XML files with as little performance hit as possible. However, in some cases you might want to open the file multiple times before exiting LabVIEW. In this case, you would not want to keep creating file references with out being able to close the old ones.

Applying the LabVIEW Internet Toolkit 6.0f2 patch will modify the behavior of the XML parser so that when the XML Close Reference VI is used and wired to a file reference, the memory allocated by the XML Load File method will be deallocated. The only caveat to be aware of is when you close the file reference, the 3rd party tools used for XML parsing will close ALL open XML File references. This means you should finish parsing and modifying all open XML files before closing any single XML file reference using the XML Close Reference VI. Other types of references that can be wired to this VI are unaffected by this change and will only close the reference that is currently wired to them.

Note: This patch requires the current version of some Microsoft libraries (i.e. MSVCP71.dll). These libraries may already be on your computer as they are common components installed by many software applications. The quickest way to ensure that the needed libraries are up to date is to download and install the LabVIEW 8.0 Run-Time Engine, which is a free download from National Instruments. The Run-Time Engine itself is NOT required for this patch to work, but the installer will update the necessary Microsoft shared libraries.

On Linux, this patch requires the "libstdc++.so.5" library to be installed. This library is on the Linux Installation CDs and is included during a typical installation. If you have a version of this library older than version 5 or you cannot find the library, you will need to install version 5 of this library. Contact your Linux provider to obtain updating instructions.

To download the update, please refer to the Drivers and Updates page on ni.com or follow the related link below.

Related Links:
Drivers and Updates: LabVIEW Internet Toolkit Version 6.0 for Linux/Mac OS X/Windows 2000/NT/XP -- Updates

Attachments:





Report Date: 01/10/2006
Last Updated: 02/03/2006
Document ID: 3T9D51GX

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit