Memory Leak Occurs When Using DigitalWaveform or AnalogWaveform Data Types in a .NET Application Primary Software: Measurement Studio>>.NET SupportPrimary 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:
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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
