Click to See Complete Forum and Search --> : Problem with Nini library


efkefk
August 24th, 2006, 03:58 PM
Hello,

I am using the Nini library (last version) to manage ini files. When I do this :
this.openFileDialog_MyShowDialog = new System.Windows.Forms.OpenFileDialog();
openFileDialog_MyShowDialog.ShowDialog();
And then go into this function :
void openFileDialog_MyShowDialog_FileOk(object sender, System.ComponentModel.CancelEventArgs e)

The function MyIniFile.Save() does not work anymore.

Note :
If I press "Cancel" from the ShowDialog window, the Save() function still works. It fails only when I press "Ok".

Note :
To avoid any cause from my code, I removed all code into the "openFileDialog_MyShowDialog_FileOk" function.

Nini is a good solution to manage ini files, but it looks like the ShowDialog() function make it crash !

Does somebody already had any experience of that ?