you can choose a partial collect with Collect( int generation)
usually GC starts automatically when memory is low
use Collect() only if you are sure it increase performances
it's intersting to start GC before a critical action where max memory is
needed, ie :
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.