What is the difference between these flush memory functions ?
Which is better (Safe to work and causes no problem) ?
thanks alot.
public static void FlushMemoryFirst()
{
System.Diagnostics.Process prs = System.Diagnostics.Process.GetCurrentProcess();
try { prs.MinWorkingSet = (IntPtr)(300000); }
catch { }
}
public static void FlushMemorySecond()
{
System.Diagnostics.Process prs = System.Diagnostics.Process.GetCurrentProcess();
try { prs.MaxWorkingSet = (IntPtr)((int)(prs.MaxWorkingSet + 1)); }
catch { }
}