access violation

TeeChart for ActiveX, COM and ASP
Post Reply
michel
Newbie
Newbie
Posts: 2
Joined: Tue Jul 22, 2003 4:00 am
Location: belgium

access violation

Post by michel » Sun Jan 04, 2004 5:50 pm

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.

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jan 05, 2004 8:46 am

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.
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/

michel
Newbie
Newbie
Posts: 2
Joined: Tue Jul 22, 2003 4:00 am
Location: belgium

Post by michel » Wed Jan 07, 2004 3:36 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 07, 2004 4:35 pm

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

Post Reply