[DllImport("psapi.dll")]
private static extern int EmptyWorkingSet(int hProcess);
public void HandleSetGC()
{
GC.Collect();
GC.WaitForPendingFinalizers();
EmptyWorkingSet(Process.GetCurrentProcess().Handle.ToInt32());
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-02-20
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案