Remove GC.Collect() calls and replace by only one (see comment)
This commit is contained in:
1 parent
542c8a5b37
commit
8ea9698e2d
3 files changed
+3
-4
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user