# HG changeset patch # User IBBoard # Date 1253961808 0 # Node ID b36cc4af435b986741443b051574a424f0ef04ea # Parent c01366bd1627e023e1fdf05e6073cafc9999a1fa Re #176: Bug when saving recently edited army * Try to make sure that we clear up more of our open streams Bug seems to be state related in some way since I can only trigger it when loading the file as the first action, but doesn't seem to be related to file loading of other data files since a diagnostic hard-coded "LoadFiles()" call in the FrmMain constructor doesn't change the behaviour diff -r c01366bd1627 -r b36cc4af435b api/Factories/AbstractNativeWarFoundryFactory.cs --- a/api/Factories/AbstractNativeWarFoundryFactory.cs Sat Sep 26 10:15:07 2009 +0000 +++ b/api/Factories/AbstractNativeWarFoundryFactory.cs Sat Sep 26 10:43:28 2009 +0000 @@ -101,7 +101,9 @@ { objects = new List(); objects.Add(obj); - } + } + + file.Close(); return objects; }