Memory not being released
Posted: Thu Aug 03, 2006 6:13 pm
Hello,
We are having a problem when our application that uses TeeChart 7.0.0.8 exits it generates a memory error. TeeChart 5.0 will exit without the memory error.
I have compiled a program that will show how the memory is not being released. Since I cannot post it here is the code to help demonstrate the memory problem. Here are some results:
No controls on the form: Memory holds stable
Only a single instance of the TeeChart 5.0 control: Memory holds stable
Only a single instance of the TeeChart 7.0.0.8 control: Memory jumps at a rate of 1MB / second.
Option Explicit
Sub main()
Dim lIndex As Long
For lIndex = 1 To 1000
Dim lFrm As Form1
Set lFrm = New Form1
Load lFrm
lFrm.Show
lFrm.Hide
Unload lFrm
Set lFrm = Nothing
Next
End Sub
Form1 contains only a single instance of the TeeChart 7.0.0.8 Control.
Thank your for your help and support,
David Oke
We are having a problem when our application that uses TeeChart 7.0.0.8 exits it generates a memory error. TeeChart 5.0 will exit without the memory error.
I have compiled a program that will show how the memory is not being released. Since I cannot post it here is the code to help demonstrate the memory problem. Here are some results:
No controls on the form: Memory holds stable
Only a single instance of the TeeChart 5.0 control: Memory holds stable
Only a single instance of the TeeChart 7.0.0.8 control: Memory jumps at a rate of 1MB / second.
Option Explicit
Sub main()
Dim lIndex As Long
For lIndex = 1 To 1000
Dim lFrm As Form1
Set lFrm = New Form1
Load lFrm
lFrm.Show
lFrm.Hide
Unload lFrm
Set lFrm = Nothing
Next
End Sub
Form1 contains only a single instance of the TeeChart 7.0.0.8 Control.
Thank your for your help and support,
David Oke