[Mono-bugs] [Bug 78430][Nor] Changed - ArgumentNullException in
System.Configuration.ApplicationSettingsBase
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 17 12:21:23 EDT 2006
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 n_sergiu2000 at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78430
--- shadow/78430 2006-05-17 12:14:19.000000000 -0400
+++ shadow/78430.tmp.28784 2006-05-17 12:21:22.000000000 -0400
@@ -138,6 +138,88 @@
(System.Windows.Forms.Form mainForm)
in <0x0002c> TMFileManager.Program:Main ()
------- Additional Comments From atsushi at ximian.com 2006-05-17 12:14 -------
Insufficient code to reproduce the problem. How can we *run* this program?
+
+------- Additional Comments From n_sergiu2000 at yahoo.com 2006-05-17 12:21 -------
+Here is a test program to reproduce the problem:
+
+namespace TMFM.Properties {
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+
+[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator",
+"8.0.0.0")]
+ internal sealed class Settings {
+
+ public Settings() {
+ // // To add event handlers for saving and changing
+settings, uncomment the lines below:
+ //
+ // this.SettingChanging += this.SettingChangingEventHandler;
+ //
+ // this.SettingsSaving += this.SettingsSavingEventHandler;
+ //
+ }
+
+ private void SettingChangingEventHandler(object sender,
+System.Configuration.SettingChangingEventArgs e) {
+ // Add code to handle the SettingChangingEvent event here.
+ }
+
+ private void SettingsSavingEventHandler(object sender,
+System.ComponentModel.CancelEventArgs e) {
+ // Add code to handle the SettingsSaving event here.
+ }
+
+ private static Settings defaultInstance =
+((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new
+Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("0")]
+ public int DepthLevel {
+ get {
+ return ((int)(this["DepthLevel"]));
+ }
+ set {
+ this["DepthLevel"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+
+[global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool ShowFreeSpace {
+ get {
+ return ((bool)(this["ShowFreeSpace"]));
+ }
+ set {
+ this["ShowFreeSpace"] = value;
+ }
+ }
+ }
+}
+
+namespace TMFM {
+
+ static class Program {
+ private Properties.Settings settings = Properties.Settings.Default;
+
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main() {
+ }
+ }
+}
More information about the mono-bugs
mailing list