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

CVI Steps Leak a Handle When Calling CA_FreeMemory

Primary Software: TestStand
Primary Software Version: 3.5
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Run-Time Engine

Problem:
I am calling a CVI DLL from TestStand that uses the CA_FreeMemory function. I have my step's Unload Option set to "Unload after step executes". When I call this step in a loop, I notice that I leak handles. How can I avoid this leak?

Solution:
There is a bug in CVI that causes the first call to CA_FreeMemory to leak a handle. The effects of this bug can be minimized if you change your step's Unload Options to "Unload when sequence file executes". Since the leak will only occur once for each time the DLL is loaded, minimizing the number of times the DLL is unloaded will reduce the effects of this.

This problem can also be resolved by upgrading to the CVI 8.1.1 Run-Time Engine.

Related Links:

Attachments:





Report Date: 04/02/2007
Last Updated: 04/30/2007
Document ID: 481GBHV3

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