Page 1 of 1

Question re. Crashes when having used DragMarks

Posted: Tue Nov 07, 2006 12:54 pm
by 6926942
Hi !

1. Most of the time when I delete series (using the Editor) that had DragMarks added by code, the TChart crashes when moving the mouse-cursor over the chart canvas.
It seems to have something to do with having moved the DragMarks prior to deleting the series.
Deleting the DragMarks before deleting the series does not change this.

2. I have the Chart Editor permanently displayed on a form with a Chart, (not using the Editor as a popup window) as described in this posting: http://www.teechart.net/support/viewtop ... highlight=
After deleting all series in the chart by editor and then adding more series by code the add/delete/title/clone/... -buttons remain deactivated. Is there any way I can have these buttons re-activated?

Thanks,
Matt.

Posted: Wed Nov 08, 2006 12:28 pm
by narcis
Hi Matt,

Please find below the answers to your questions:

1. We could reproduce this here and fixed it for the next release. In the meantime you can remove the series at run-time:

Code: Select all

        private void button1_Click(object sender, EventArgs e)
        {           
            if (tChart1.Series.Count > 0)
                tChart1.Series.Remove(tChart1[0]);
        }
or dispose both the series and the tool:

Code: Select all

        private void button1_Click(object sender, EventArgs e)
        {
            dragMarks1.Dispose();            
            if (tChart1.Series.Count > 0)
                tChart1[0].Dispose();
        }
2. This works fine here using the latest maintenance release available at the client area. Which TeeChart version are you using?

Posted: Wed Nov 08, 2006 12:47 pm
by 6926942
We are currently using Version 2.0.2469.25745
I was unaware that a new version has been released. Will try this one ...

Thanks.