[Bug 31269] New: System.OverflowException in .NET application using Decimal data type
wine-bugs at winehq.org
wine-bugs at winehq.org
Fri Jul 20 18:38:59 CDT 2012
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 at winehq.org
ReportedBy: elgonzo at 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.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list