System.ArgumentException when application is idle

Docking/MDI for Windows Forms Forum

Posted 12 years ago by Frank Preiss - Siemens AG
Version: 2.0.0081
Avatar
On several machines we encounter the following System.ArgumentException when the application is idle for a longer time. The error is not 100% reproducable, but occurs every now and then:

System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.SetClip(RectangleF rect, CombineMode combineMode)
at System.Drawing.Graphics.SetClip(RectangleF rect)
at ActiproSoftware.WinUICore.UIControl.OnRenderChildElements(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIControl.Render(PaintEventArgs e)
at ActiproSoftware.WinUICore.UIControl.a(PaintEventArgs A_0)
at ActiproSoftware.WinUICore.UIControl.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.ScrollableControl.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)

Actipro Versions:
ActiproSoftware.Shared.Net20.dll - 1.0.87.0
ActiproSoftware.UIStudio.Dock.Net20.dll - 2.0.81.0
ActiproSoftware.WinUICore.Net20.dll - 1.0.87.0

Comments (4)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Frank,

This sounds somewhat familiar and I believe may have been something that was fixed a while back. Please update to the latest maintenance release to see if it resolves the problem for you.


Actipro Software Support

Posted 12 years ago by Frank Preiss - Siemens AG
Avatar
We have changed to version 2.0.93.0, but today the exact error occured again on a machine, where it has occured before.
Any suggestions? I could provide you with a screenshot of the UI after the unhandled exception has occured.
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Any chance you can tell whether the e.Graphics is still valid when this happens or what the size of the Rectangle parameter for the SetClip call is at that time?


Actipro Software Support

Posted 12 years ago by Frank Preiss - Siemens AG
Avatar
We are using Identify AppSight to get the data you have requested. I will report it here as soon as the error occurs again.
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.