Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Memory Leak Occurs When Using DigitalWaveform or AnalogWaveform Data Types in a .NET Application

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 8.1
Primary Software Fixed Version: 8.1
Secondary Software: N/A

Problem: I have a .NET application that uses the NationalInstruments.DigitalWaveform and the NationalInstruments.AnalogWaveform data types. The application leaks memory if it runs for a long period of time. How do I fix this?

Solution: The NationalInstruments.DigitalWaveform and NationalInstruments.AnalogWaveform data types exhibit a memory leak in version 8.1.20.165 of NationalInstruments.Common.dll and NationalInstruments.Common.Native.dll. These are shared data types and are used by the NI-DAQmx .NET API and by the Measurement Studio 8.1 Network Variable API.

A patch is available for this memory leak. The patch installs the following DLLs on the system:


Assembly Name Version
NationalInstruments.Common.dll 8.1.20.166
NationalInstruments.Common.Native.dll     8.1.20.166

Note: These DLLs are shared and are installed by multiple products, such as NI-DAQmx, NI-VISA, and NI-4188.2. The patch will not install if it detects version 8.1.20.166 or higher for the DLLs already installed. If the patch installer reports an error, please verify that the version number of NationalInstruments.Common.dll and NationalInstruments.Common.Native.dll is 8.1.20.166 or higher. These assemblies are always installed as a set, so just verifying NationalInstruments.Common.dll is sufficient. You can find this assembly under C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Assemblies\Current.

Related Links: Measurement Studio Version 8.1 for Windows 2000/XP -- Patch for Memory Leak with NationalInstruments.AnalogWaveform and NationalInstruments.DigitalWaveform Data Types

Attachments:





Report Date: 12/21/2006
Last Updated: 05/23/2007
Document ID: 44KGD05B

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