Home > Fresh News > Clean memory

Clean memory

February 20th, 2012 Leave a comment Go to comments

[CPP]// Swaps the process out of physical RAM memory
SetProcessWorkingSetSize(GetCurrentProcess(), (SIZE_T)-1, (SIZE_T)-1);[/CPP]

Можно ещё делать так, когда память процесса превышает некую “норму”:

[CPP]EmptyWorkingSet(GetCurrentProcess());[/CPP]

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.