diff --git a/embroideryReader/frmMain.cs b/embroideryReader/frmMain.cs index 2a023df..1d3529f 100644 --- a/embroideryReader/frmMain.cs +++ b/embroideryReader/frmMain.cs @@ -479,7 +479,18 @@ namespace embroideryReader settings.windowHeight = this.Height; } } - settings.save(); + try + { + settings.save(); + } + catch (System.IO.IOException /*ioex*/) + { + // Ignore IO exceptions when saving settings file, to deal with crashes caused by + // closing many windows at once. + + // This isn't a great way to handle the problem, but it's better than getting + // the same automated error report over and over. + } } private string CurrentVersion() diff --git a/embroideryReader/frmSettingsDialog.cs b/embroideryReader/frmSettingsDialog.cs index bccc244..2351e06 100644 --- a/embroideryReader/frmSettingsDialog.cs +++ b/embroideryReader/frmSettingsDialog.cs @@ -135,6 +135,9 @@ namespace embroideryReader // Save translation setting settings.translation = availableTranslations[cmbLanguage.SelectedIndex].Item2; + + // Save settings file + settings.save(); } public Translation setTranslation