Page 1 of 1

Access violation at address XXXX in module Teechart5.ocx

Posted: Mon Apr 11, 2005 10:07 am
by 6927527
Hi,

When I try to display an horizontal Gantt, and it has a lot of points this error appears.
"Access violation at address XXXX in module Teechart5.ocx"

I have the 5.0 version

Thank a lot.

Bego.

Posted: Mon Apr 11, 2005 10:24 am
by narcis
Hi Bego,

I've tried to reproduce your problem without success. I've added 100000 gantt points but the application worked fine. The code I used is:

Code: Select all

Private Sub Form_Load()
    Randomize
    For i = 0 To 100000
        TChart1.Series(0).asGantt.AddGantt Rnd(100), Rnd(100), Rnd(100), ""
    Next i
End Sub
Could you please tell us the steps to reproduce the problem or send us an example we can run "as-is" to reproduce the problem here? You can post your projects at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Posted: Tue Apr 12, 2005 4:52 pm
by Pep
Hi BegoƱa,

are you using the latest maintenance release of TeeChart Pro v5 ( the v5.06) ? You can download it from our web site , at the private customers download page.

I've just try with the following code and works fine here :
For i = 0 To 3000
TChart1.Series(0).asGantt.AddGanttColor Rnd * 100, Rnd * 200, Rnd * 5, "", vbBlue
Next i