[Mono-bugs] [Bug 593980] New: When user.config is still not created, calling only Settings.Default.Save() makes Mono create a user.config file, which has all settings empty.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Apr 6 07:17:44 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=593980
http://bugzilla.novell.com/show_bug.cgi?id=593980#c0
Summary: When user.config is still not created, calling only
Settings.Default.Save() makes Mono create a
user.config file, which has all settings empty.
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: petar.minchev at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=352564)
--> (http://bugzilla.novell.com/attachment.cgi?id=352564)
A simple application, with which you can immediately reproduce the problem.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Iron/3.0.197.0 Safari/532.0
IMPORTANT: My settings are in a class library project, which is referenced by a
Windows Forms project. If the settings were in a lonely Windows Forms project
then everything is fine.
Steps: OK, so I run the Windows Forms project(which is referencing a class
library one with the settings) and see that the setting is displayed properly.
I have a button which calls only Settings.Default.Save(). I press it, and after
that I close the application and run it again. The setting is now empty. I have
attached the executables.
Reproducible: Always
Steps to Reproduce:
1.Have a settings file in a class library project, which is referenced by a
Windows Forms one.
2.On the first run of the application, call only Settings.Default.Save();
3.Immediately after that, user.config is created with empty tags for the
settings.
Actual Results:
A user.config is created with empty tags for the settings.
Expected Results:
A user.config should be created containing the default values of the settings.
I am writing this, because it can help you to identify the bug faster. On
running the application for the first time, if "Settings.Default.Font =
Settings.Default.Font" is called before "Settings.Default.Save()", then
everything works OK.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list