TeeChart for ActiveX, COM and ASP
-
Jesús Lucas
- Newbie
- Posts: 6
- Joined: Tue Feb 10, 2004 5:00 am
- Location: Barcelona (Spain)
-
Contact:
Post
by Jesús Lucas » Mon May 03, 2004 3:51 pm
We are using TeeChart Pro v6.0.0.4 and when adding and deleting an annotation tool into a chart, it leaks aproximately 700 bytes of memory each time.
Code: Select all
Dim index As Integer
index = TChart1.Tools.Add(tcAnnotate)
TChart1.Tools.Delete (index)
I think the Delete method does not actually delete the tool, because, if I don't call it, the leak it's almost the same.
It is solved in any version of TeeChart?
Thanks for your help.
Best Regards:
Jesús Lucas
Tango/04 Computing Group
http://www.tango04.com
IBM ALL STAR Partner
Teléfono: +34 93 274 00 51 Fax: +34 93 345 13 29
Avenida Meridiana 358, 5 A-B
08027 Barcelona
-
Pep
- Site Admin
- Posts: 3303
- Joined: Fri Nov 14, 2003 5:00 am
-
Contact:
Post
by Pep » Mon May 03, 2004 5:51 pm
Hi Jesus,
I've tried the following code here using the latest TeeChart Pro v6.04 and works as expected (memory does not leaks) , also the tool is deleted. Could you please check it ?
Code: Select all
Private Sub Command1_Click()
Dim index As Integer
index = TChart1.Tools.Add(tcAnnotate)
' TChart1.Tools.Delete (index)
End Sub
Private Sub Form_Load()
With TChart1
.AddSeries scLine
.Series(0).FillSampleValues (10)
End With
End Sub
If you still having problems, could you please post the code with which I can reproduce the problem "as - is" here ?
-
Jesús Lucas
- Newbie
- Posts: 6
- Joined: Tue Feb 10, 2004 5:00 am
- Location: Barcelona (Spain)
-
Contact:
Post
by Jesús Lucas » Tue May 04, 2004 7:31 am
I made a test program that consist only in an empty TChart and a button, and the code is:
Code: Select all
Private Sub Command1_Click()
Dim counter As Long
Dim index As Integer
For counter = 1 To 5000
index = TChart1.Tools.Add(tcAnnotate)
TChart1.Tools.Delete (index)
Next counter
End Sub
This code leaks about 3500 Kb each time button is pressed.
Best Regards:
Jesús Lucas
Tango/04 Computing Group
http://www.tango04.com
IBM ALL STAR Partner
Teléfono: +34 93 274 00 51 Fax: +34 93 345 13 29
Avenida Meridiana 358, 5 A-B
08027 Barcelona
-
Pep
- Site Admin
- Posts: 3303
- Joined: Fri Nov 14, 2003 5:00 am
-
Contact:
Post
by Pep » Tue May 04, 2004 9:36 am
Hi Jesus,
yes, you're correct, I'm are able to reproduce the problem. It has been logged on our defect list for investigation. Thankyou for the report.
-
Jesús Lucas
- Newbie
- Posts: 6
- Joined: Tue Feb 10, 2004 5:00 am
- Location: Barcelona (Spain)
-
Contact:
Post
by Jesús Lucas » Tue May 04, 2004 10:13 am
I'm glad to help
Best Regards:
Jesús Lucas
Tango/04 Computing Group
http://www.tango04.com
IBM ALL STAR Partner
Teléfono: +34 93 274 00 51 Fax: +34 93 345 13 29
Avenida Meridiana 358, 5 A-B
08027 Barcelona