dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]Re: Force byte type for enumerator runtime error


From: Mike Peters
Subject: [DotGNU]Re: Force byte type for enumerator runtime error
Date: Sun, 9 Mar 2003 15:59:05 +0200

On Sun, 9 Mar 2003 15:05:19 +0200
Mike Peters <address@hidden> wrote:

> Uncaught exception: System.FormatException: The supplied value did not
> have the correct format
>         at
> System.Private.NumberFormat.GeneralFormatter.PrecisionOf(Object) in
> ./System/Private/NumberFormat/GeneralFormatter.cs:59
>         at System.Private.NumberFormat.GeneralFormatter.Format(Object,
> IFormatProvider) in
> ./System/Private/NumberFormat/GeneralFormatter.cs:86
>         at System.Byte.ToString(String, IFormatProvider) in
> ./System/Byte.cs:69
>         at System.Byte.ToString() in ./System/Byte.cs:56
>         at System.Enum.Format(Type, Object, String) in
> ./System/Enum.cs:134
>         at System.Enum.ToString(String, IFormatProvider) in
> ./System/Enum.cs:591
>         at System.Enum.ToString(String) in ./System/Enum.cs:577
>         at enumDays.Main()
> 

The attached patch to pnetlib-0.5.2, GeneralFormatter.cs would seem to
fix this but someone more experienced should check it doesn't break
anything as I'm only a few hours old to dotGNU and pnet. 

What would be the accepted form for patches (this one was made using
diff -cbr)? And again, would this be the right place to post them?

Apologies if I'm in the wrong place. Tell me and I'll shut up.
-- 
Mike

Registered Linux User #247123

Once upon a time the plural of 'wizard' was 'war'.
(The Last Continent)

Attachment: GeneralFormatter.cs.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]