[Mono-winforms-list] SetSystemColors regression ?

Sebastien Pouliot sebastien at ximian.com
Mon Apr 30 08:48:40 EDT 2007


On Sun, 2007-04-29 at 11:20 +0200, Gert Driesen wrote:
> Hi,
>  
> There appears to be a regression in SetSystemColors. 
>  
> The KnownColors.Update method has the following signature:
> public static void Update (int knownColor, uint color)
> 
> However in Theme.SetSystemColors, we're passing in two int's:
> update.Invoke (null, new object [2] { (int) kc, value.ToArgb () });
> 
> This results in an ArgumentException (thrown by MonoMethod.Invoke).
> 
> Strange thing is that I only noticed this issue today, and this change was
> done two weeks ago. 
> 
> Am I missing something here ?

Yes, there was a newer update (to reduce KnownColor code size) that
changed the int to an uint - and reflection didn't like that :|

Fixed in SVN r76489.

Thanks,
Sebastien




More information about the Mono-winforms-list mailing list