When I try to close the form that contain a chart (instruction : unload me), I get: "Access Violation at address 504B766B in module
'TeeChart6.ocx'. Read of address FFFFFFFF"
The OS is Windows Me. The sofware is VB6 SP5.
access violation
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi --
Many thanks.
I'm having trouble reproducing this one here I'm afraid. Would you be so kind as to send me some example code which I can run "as-is" to repeat this error here?When I try to close the form that contain a chart (instruction : unload me), I get: "Access Violation at address 504B766B in module
'TeeChart6.ocx'. Read of address FFFFFFFF"
The OS is Windows Me. The sofware is VB6 SP5.
Many thanks.
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
I created a form (name : frmGraphes, properties :Windowstate :2 (maximized), no titlebar) on which I placed a TChart control (properties :TChart1.Width = frmGraphes.Width,TChart1.Height = frmGraphes.Height)
In order to leave the window frmGraphes, I detected the displacment of the mouse in the event :
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static Xlast, Ylast
Dim Xnow As Single
Dim Ynow As Single
On Error Resume Next
'obtenir la position courante
Xnow = X
Ynow = Y
'Au premier mouvement, enregistrer simplement la position
If Xlast = 0 And Ylast = 0 Then
Xlast = Xnow
Ylast = Ynow
Exit Sub
End If
'Quitter seulement si la souris change effectivement de position
If Xnow <> Xlast Or Ynow <> Ylast Then
Db.Close
Unload frmGraphes
End If
End Sub
All is OK until the instruction "unload frmGraphes" which produces the error message
In order to leave the window frmGraphes, I detected the displacment of the mouse in the event :
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Static Xlast, Ylast
Dim Xnow As Single
Dim Ynow As Single
On Error Resume Next
'obtenir la position courante
Xnow = X
Ynow = Y
'Au premier mouvement, enregistrer simplement la position
If Xlast = 0 And Ylast = 0 Then
Xlast = Xnow
Ylast = Ynow
Exit Sub
End If
'Quitter seulement si la souris change effectivement de position
If Xnow <> Xlast Or Ynow <> Ylast Then
Db.Close
Unload frmGraphes
End If
End Sub
All is OK until the instruction "unload frmGraphes" which produces the error message
Hi Michel,
I've sent one example to the steema.public.attachments newsgroup which works fine here using the latest TeeChart Pro v6.04. Could you please test and modify (if required) it so I can reproduce the problem "as is" here ?
Josep Lluis Jorge
http://support.steema.com
I've sent one example to the steema.public.attachments newsgroup which works fine here using the latest TeeChart Pro v6.04. Could you please test and modify (if required) it so I can reproduce the problem "as is" here ?
Josep Lluis Jorge
http://support.steema.com