Hello Stoyan,
Thank you for the prompt reply.
I have not been able to get this error to come up in test / debug yet. I have been having trouble narrowing down what causes it. So far I have only reports from customers (and I have witnessed it a couple times in production on a customer's machine). I will work on getting it to happen in debugging to see if I can get the parameters to the DrawImage call.
There is indeed more to the stack trace. Not sure why I neglected to paste it in the first time. Sorry about that. here is the complete trace (minus the "loaded assemblies" section).
System.ArgumentException: Parameter is not valid. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawImage(Image image, Single x, Single y, Single width, Single height) at MindFusion.Drawing.GdiGraphics.DrawImage(Image image, Single x, Single y, Single width, Single height) at MindFusion.Diagramming.InternalUtils.x558cc83610335d8b(IGraphics x41347a961b838962, Image x4a6f8f599234ca5f, RectangleF x26545669838eb36e, ImageAlign x2e6580b48a110b1a, Single x4749942254829e39, PointF x6ed65a00e5541460, Single x9bdeb785c5aca5b5) at MindFusion.Diagramming.ShapeNode.xeda13f64d938197c(IGraphics x41347a961b838962, RenderOptions xdfde339da46db651) at MindFusion.Diagramming.ShapeNode.xc79d59e9288101bd(IGraphics x41347a961b838962, RectangleF xa6236fc5cd405c4e, Boolean x2f9dabff87b2168b, Brush xb45de92d01a0ec1f, Pen x9c79b5ad7b769b12, RenderOptions xdfde339da46db651) at MindFusion.Diagramming.ShapeNode.Draw(IGraphics graphics, RenderOptions options) at MindFusion.Diagramming.Diagram.x679ae26de3befa07(IGraphics x41347a961b838962, RectangleF xd0772cd9ac472b96, Boolean x979174172ae18db3) at MindFusion.Diagramming.Diagram.Draw(IGraphics graphics, RenderOptions options, RectangleF clipRect, Boolean noModifiedItems) at MindFusion.Diagramming.WinForms.Overview.x63073b9c25464bd6(IGraphics x4b101060f4767186) at MindFusion.Diagramming.WinForms.Overview.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs) at System.Windows.Forms.Control.WmPaint(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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Also, I am on 5.3.1, we have not yet upgraded our application to 5.3.2. here is the loaded minfusion assembly versions
MindFusion.Diagramming.WinForms 5.3.1.23786 MindFusion.Diagramming 5.3.1.23784 MindFusion.Diagramming.WinForms.Overview 5.3.1.23788 MindFusion.Common 1.2.3475.22165 MindFusion.Graphs 1.0.0.0 MindFusion.Diagramming.WinForms.Ruler 5.3.1.23788
|