Hack: Collect garbage between images

This commit is contained in:
2016-04-10 22:26:04 +02:00
parent c734ad85fd
commit ef381a6c06

View File

@@ -109,6 +109,9 @@ namespace ImageCrusher
string newFileName = String.Format("{0}/{1}.small.jpg", destPath, Path.GetFileNameWithoutExtension(fileName));
imgThumb.Save(newFileName, ImageFormat.Jpeg);
// Hack: collect garbage now
GC.Collect();
lstImagenes_AddLine(string.Format("OK: {0}", newFileName));
}
catch (Exception ex)