[Mono-dev] Re: Registry Bug still around?

Robert Jordan robertj at gmx.net
Sat May 27 18:45:32 EDT 2006


Hi Cory,

> I've got the latest version of Mono, and it looks like the Registry bug 
> is still around on Linux. I've created a test case which is attached to 
> this email. Here's what I get while running it:
> 
> foyc at dilbert ~/workspace/monobugs $ mono -V
> Mono JIT compiler version 1.1.15, (C) 2002-2005 Novell, Inc and 
> Contributors. www.mono-project.com
>         TLS:           normal
>         GC:            Included Boehm (with typed GC)
>         SIGSEGV:       normal
>         Disabled:      none
> foyc at dilbert ~/workspace/monobugs $ mono regtest.exe
> Setting Values
> Clearing Names
> 
> Unhandled Exception: System.InvalidCastException: Cannot cast from 
> source type to destination type.

The fix is definitely in trunk (I'm not sure about the 1.1.15 release),
but your test case reveals another one:

Unhandled Exception: System.ArgumentException: key 
/home/robertj/.mono/registry/LocalMachine/software/nunit.org/nunit/2.4/foo 
at HKEY_DYN_DATA\software\nunit.org\nunit\2.4
in <0x000e8> Microsoft.Win32.RegistryKey:DeleteSubKeyTree (System.String 
keyName)
in (wrapper remoting-invoke-with-check) 
Microsoft.Win32.RegistryKey:DeleteSubKeyTree (string)


RegistryKey.GetSubKeyNames() returns unix paths instead of key names.

Please file a bug.

Thanks!
Robert




More information about the Mono-devel-list mailing list