摘要:
[DllImport("kernel32.dll")] public static extern bool SetProcessWorkingSetSize(IntPtr process, int minSize, int maxSize); public static void GarbageCollect() { GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); } public static void FlushMemory() { GarbageCollect(); if (Environment. 阅读全文
posted @ 2011-03-18 09:26 hyruur 阅读(1749) 评论(3) 推荐(0) 编辑