Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79051 --- shadow/79051 2006-08-10 14:28:42.000000000 -0400 +++ shadow/79051.tmp.20305 2006-08-10 14:28:42.000000000 -0400 @@ -0,0 +1,54 @@ +Bug#: 79051 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: UnixRegistryAPI attempts to write key values after key is removed + +Apparently, Mono's registry implementation for unix attempts to write key +values to disk after a its parent key has been removed. + +To reproduce, compile and run the following code snippet: + +using System; +using Microsoft.Win32; + +public class RegistryTest +{ + static void Main () + { + using (RegistryKey softwareKey = Registry.LocalMachine.OpenSubKey +("software", true)) { + RegistryKey monoKey = softwareKey.CreateSubKey ("monotest1"); + monoKey.SetValue ("test", "whatever"); + monoKey.Close (); + softwareKey.DeleteSubKeyTree ("monotest1"); + } + } +} + +Expected result: + +Successful execution with no error output. + +Actual result: + +When +saving /home/monohead/.mono/registry/LocalMachine/software/monotest1/value +s.xml got System.IO.DirectoryNotFoundException: Destination directory not +found: /home/monohead/.mono/registry/LocalMachine/software/monotest1 + at System.IO.File.Create (System.String path, Int32 buffersize) +[0x00000] + at System.IO.File.Create (System.String path) [0x00000] + at Microsoft.Win32.KeyHandler.Save () [0x00000] _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
