uses Windows; //方案1 SetProcessWorkingSetSize(GetCurrentProcess, $FFFFFFFF, $FFFFFFFF); uses PsAPI; //方案2 EmptyWorkingSet(GetCurrentProcess);