NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TS_ExprCtrl_Create object handle

Solved!
Go to solution

Hello,

 

I'm using LabWindows/CVI 9.0.1 and TestStand 4.1.1.

When I'm debugging my CVI DLL with the resource tracking tool, I can see that the TS_ExprCtrl_Create function creates 3 object handles.

 

When the panel is discarded, 2 handles are automatically discarded.

But there is still 1 handle that is never discarded.

 

Is it a memory leak or am I missing something ? Should I use a function to release the last handle ?

 

bruno

0 Kudos
Message 1 of 3
(3,153 Views)
Solution
Accepted by topic author bruno_p

It's a memory leak in TS_ExprCtrl_Create. What's happening is TS_ExprCtrl_Create is calling TS_ExprCtrl_CreateActiveXControl which calls TSUI_ExpressionEditGetBorders to get an object handle to the Borders interface. But CA_DiscardObjHandle is not being called on the borders object handle.

 

I've created a bug report (ID 177213) to fix this.

0 Kudos
Message 2 of 3
(3,134 Views)
Just to clarify, you could add the call to CA_DiscardObjHandle in TS_ExprCtrl_CreateActiveXControl yourself to have a fix for the leak now.
0 Kudos
Message 3 of 3
(3,107 Views)