ElementMarkerPointsGraph Detaching problem

Dec 18, 2008 at 2:12 PM
Hi, I think I find a problem... in the class ElementMarkerPointsGraph

public override void OnPlotterDetaching(Plotter plotter)
        {
            base.OnPlotterDetaching(plotter);

            Plotter2D.CentralGrid.Children.Remove(grid);
            grid = null;
            canvas = null;          
        }

when base.OnPlotterDetaching is invoked the plotterD2 became null

see it in the class ViewportElement2D:

public override void OnPlotterDetaching(Plotter plotter)
        {
            base.OnPlotterDetaching(plotter);

            viewport.PropertyChanged -= OnViewportPropertyChanged;
            viewport = null;
            plotter2D.CentralGrid.Children.Remove(this);
            plotter2D = null;
        }

so when return to execute Plotter2D.CentralGrid.Children.Remove(grid) it throws an exeption.

Cheers,
Giuseppe



Editor
Dec 19, 2008 at 3:51 PM
Thank you, this bug will be fixed in next release.
Editor
Jan 4, 2009 at 1:23 PM
Edited Jan 4, 2009 at 1:24 PM
Hi, Giuseppe!

I'm glad to inform you that this bug was fixed in DynamicDataDisplay v0.2.1 - you can get it here.

Best regards,
Mikhail
Jan 7, 2009 at 6:46 AM
Thankyou very much.

Best regards,
Giuseppe