'System.OverflowException' in Dapfor.Net.dll
I recently upgraded my development workstation to Microsoft Windows 10 Pro Version 10.0.14393 Build 14393" (a.k.a the Anniversary Update). Now, whenever I resize a form with a Grid on it targeting a 64 bit platform, I receive the exception above. I observe the same behavior on another computer running this same version of Windows. (Environment details at end of post)
Reproducing the exception is very easy - simply:
- Create a new WinForm project with the platform set to Any CPU. BE SURE TO UNCHECK the "Prefer 32 Bit" under the project properties. (I have only ever seen the exception when running in 64 bit mode)
- Add the bolded lines below
- Run the application and resize the form
public Form1()
{
InitializeComponent();
var g = new Grid
{
// not strictly necessary, but makes the exception occur right
// when the from is resized
Dock = DockStyle.Fill
};
this.Controls.Add(g);
}
Environment:
Grid Version: 2.8.1.47986
Target .Net Framework: 4.5.2
CLR version: v4.0.30319
Windows: Microsoft Windows 10 Pro Version 10.0.14393 Build 14393
(I believe the problem is related to calling IntPtr.ToInt32() on a Handle based on internet research)
-
Official comment
Thank you for the post,
Indeed the version 2.8.1 has been released in the 2012 and it is not compatible with Windows10. This bug no more exists starting the version 2.10.3
Best regards,
Dapfor
Please sign in to leave a comment.
Comments
1 comment