Page 1 of 1

access violation

Posted: Sun Jan 04, 2004 5:50 pm
by 9078338
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.

Posted: Mon Jan 05, 2004 8:46 am
by Chris
Hi --
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.
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?

Many thanks.

Posted: Wed Jan 07, 2004 3:36 pm
by 9078338
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

Posted: Wed Jan 07, 2004 4:35 pm
by Pep
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