Code-Artist / MSChartExtension

Windows Forms MSChart Extensions Method
MIT License
33 stars 16 forks source link

Error during minimizing #16

Closed Fulgi86 closed 10 months ago

Fulgi86 commented 10 months ago

I have attached the plot on a form and during a minimizing in the a cursor is present on the plot the application crash. The error is the followng:

at System.Windows.Forms.DataVisualization.Charting.Axis.PositionToValue(Double position, Boolean validateInput) at System.Windows.Forms.DataVisualization.Charting.Axis.PixelPositionToValue(Double position) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.CheckAndUpdateTextAnnotationLocation(Chart chart, TextAnnotation textAnn, Double xStart, Double yStart) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.UpdateCursorLabelPosition(Chart sender) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.ChartControl_Resized(Object sender, EventArgs e) at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) at System.Windows.Forms.Control.UpdateBounds() at System.Windows.Forms.Control.WmWindowPosChanged(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Code-Artist commented 10 months ago

Can you share the project where you have this error? Otherwise, maybe a image showing what kind of data added to chart which causing this error. I'll first need to reproduce the error before I can fix it. Thanks.

On Tue, 31 Oct 2023, 6:55 pm Fulgi86, @.***> wrote:

I have attached the plot on a form and during a minimizing in the a cursor is present on the plot the application crash. The error is the followng:

at System.Windows.Forms.DataVisualization.Charting.Axis.PositionToValue(Double position, Boolean validateInput) at System.Windows.Forms.DataVisualization.Charting.Axis.PixelPositionToValue(Double position) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.CheckAndUpdateTextAnnotationLocation(Chart chart, TextAnnotation textAnn, Double xStart, Double yStart) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.UpdateCursorLabelPosition(Chart sender) at System.Windows.Forms.DataVisualization.Charting.MSChartExtension.ChartControl_Resized(Object sender, EventArgs e) at System.Windows.Forms.Control.OnSizeChanged(EventArgs e) at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) at System.Windows.Forms.Control.UpdateBounds() at System.Windows.Forms.Control.WmWindowPosChanged(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

— Reply to this email directly, view it on GitHub https://github.com/Code-Artist/MSChartExtension/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMY3GE2U4E4ADPA4CJNMETYCDKINAVCNFSM6AAAAAA6XPLZWOVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TAMJYGU2DOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Fulgi86 commented 10 months ago

Sure... Fist the normal work situation: image Then the error when i have minimazed it: image

Code-Artist commented 10 months ago

Issue fixed in Version 3.10.2