Remove GC.Collect() calls and replace by only one (see comment)

This commit is contained in:
Flamefire committed 2014-03-16 18:44:34 +01:00
1 parent 542c8a5b37
commit 8ea9698e2d
3 files changed
+3 -4

No files matched your search

+3
View File
@@ -230,6 +230,9 @@ namespace Vocaluxe
CLog.StopBenchmark("Init Party Modes");
Application.DoEvents();
//Only reasonable point to call GC.Collect() because initialization may cause lots of garbage
//Rely on GC doing its job afterwards and call Dispose methods where appropriate
GC.Collect();
}
catch (Exception e)
{