Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Arithmetic Operation Overflow

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Arithmetic Operation Overflow
Link Posted: 08-Feb-2008 04:21
I am porting an application that uses FlyGrid from .Net 1.1 to .Net 2.0 (64 Bit). I'm using version 1.3.6.0, since that was the version at the time I got this app working. I'm using a modification of the self-related, virtual mode grid example.

The conversion has been successful, and I thought all was well with the Flygrid. However, all of my testing up to this point has been in debug mode. When I run the application in regular runtime, I encounter this error everytime I try to do anything with the FlyGrid instance:

System.OverflowException: Arithmetic operation resulted in an overflow.
   at NineRays.Windows.Forms.FlyGrid.WndProc(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)

Unfortunately, I can't activate JIT debugging to see where the issue is derived from. As I said, the FlyGrid works without issue in debug - why would it fail in runtime?

Any ideas?

Eric
Link Posted: 08-Feb-2008 04:26
Eric,

Could you please provide a test app that we can use to debug the issue?
Link Posted: 13-Feb-2008 10:12
Hello Evgeny!

Here is a stripped down test app featuring the error that I wrote of... The same error appears when in runtime with this app. To get the zip file size small enough to attach I have had to delete the compiled files in the debug/obj directories. You will have to recompile to test this out.

Here are the details about the environment and behaviours:

Dell Precision 380
Pentium 4
Windows XP 64
Visual Studio 2005 v 8.0.50727.42
Visual Basic 2005
.Net Framework 2.0.50727
NineRays FlyGrid v 1.3.6.0

Compile:
Target CPU - Any CPU

Behaviour:
Debug Mode - Application works as expected - clicking on any node will change values in fields at right.

Runtime Mode - Clicking on any node (or on any part of interface) results in error:

System.OverflowException: Arithmetic operation resulted in an overflow.
at NineRays.Windows.Forms.FlyGrid.WndProc(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)

Thank you for looking into this - I need to complete and deploy this conversion ASAP, since all of our engineers have been converted to XP64.

Eric
Link Posted: 13-Feb-2008 23:37
Eric,

Thanks for the code. I understand that it is is urgent for you, but anyway it will take some time for us to test it and debug under XP64bit environment.


Thanks.
Link Posted: 14-Feb-2008 07:26
Eric,

What do I need to do to make it raise exception?

See the screenshot of what I have at x64 host:
[attachment=0]fg_x64.png[/attachment]
Link Posted: 14-Feb-2008 11:42
Sorry Evgeny,

I forgot to mention that the zip file needs to be un-zipped at the root of the C Drive. The datasource for the grid is the file "C:\Code2\FlyGridTest64\FlyGridTest\SelfRelatedTable.xml". The grid has to be populated for the error to appear.

I have attached the xml file just in case it wasn't included in the original zip archive. I have changed the extension to .zip since the forum won't allow .xml (or just about any other extension!) files to be uploaded.
Be sure to change the extension back to .zip before testing.

Thanks!

Eric
Link Posted: 20-Feb-2008 04:44
Hello!

Just checking to see if you were able to duplicate the error...

Eric
Link Posted: 25-Feb-2008 06:02
Any Luck?
Link Posted: 28-Feb-2008 04:26
Hello?!? Anyone home?
Link Posted: 09-Mar-2008 17:14
This weekend I refactored my application using the latest version of the FlyGrid evaluation for .Net 2.0... After some tweaking, I was able to get the grid to work without the overflow error. At this point I am ready to put this project behind me, but I need to obtain the latest prod version of the FlyGrid. My client logged into their account, but did not see a link to download the Pro 2.0 version.

How can they obtain the latest version?

Eric