http://bugs.winehq.org/show_bug.cgi?id=31269
Bug #: 31269 Summary: System.OverflowException in .NET application using Decimal data type Product: Wine Version: 1.5.0 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: oleaut32 AssignedTo: wine-bugs@winehq.org ReportedBy: elgonzo@gmx.net Classification: Unclassified
I tried to run a .NET 2.0 application with Wine 1.5. Its GUI uses System.Windows.Forms.NumericUpDown controls.
When setting the NumericUpDown's Value property (data type is Decimal), it may raise the following unhandled exception:
System.OverflowException: Value was either too large or too small for a Decimal. at System.Decimal.Compare(Decimal d1, Decimal d2) at System.Windows.Forms.NumericUpDown.set_Value(Decimal value) at FootprintCreator.GUI.NumericInputMIL.OnActiveUnitChanged(Object sender, UnitEventArgs e) at FootprintCreator.Data.UnitManager.UnitChangedHandler.Invoke(Object sender, UnitEventArgs e) at FootprintCreator.Data.UnitManager.set_ActiveUnit(Unit value)
Apparently, the NumericUpDown control wants to compare the new value with the existing one (to determine if an update is necessary, i guess), which results in throwing the exception.
The application works fine in MS Windows (using the native .NET framework). With Ubuntu 12.04 as host OS, the problem occurred with Wine 1.5 as well as Wine 1.4, and with either dotnet20 or dotnet20sp2 package being installed.
This issue might be related to bug #18709.