Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak when changing annotation coordinates

Hello,
In my project I have a CWGraph with plot and one annotation (min max region). I have a VBtimer on form, and in this timer's event I am changing annotation coordinates type from axis to screen and back. In this case memory leak is ocurred. Timer frequency is about 10 ms. Please, help me to resolve it ?
Here is an expmle:

Private Sub Timer1_Timer()
Dim ann As CWAnnotation
Set ann = CWGraph1.Annotations.Item("Annotation-1")

ann.CoordinateType = cwAxesCoordinates
ann.CoordinateType = cwScreenCoordinates
End Sub
0 Kudos
Message 1 of 2
(3,065 Views)
Hi McSol,

This is actually a known issue with the CWGraph. You can obtain the fix on NI's ftp site at
ftp://ftp.ni.com/support/compworks/windows/Hotfixes/Annotations/

If you have any further questions regarding this issue, please email us directly at http://www.ni.com/ask

Regards,
Azucena
NI
0 Kudos
Message 2 of 2
(3,065 Views)