Question re. Crashes when having used DragMarks

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ECDP
Newbie
Newbie
Posts: 8
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Question re. Crashes when having used DragMarks

Post by ECDP » Tue Nov 07, 2006 12:54 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 08, 2006 12:28 pm

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?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ECDP
Newbie
Newbie
Posts: 8
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Post by ECDP » Wed Nov 08, 2006 12:47 pm

We are currently using Version 2.0.2469.25745
I was unaware that a new version has been released. Will try this one ...

Thanks.

Post Reply