Re[5]: GC и явное освобождение ресурсов
От: ivasi  
Дата: 01.09.06 15:18
Оценка:
DT>РАБОТАЕТ!!!! Только чего оно делает-то? :)

DT>Спасибо огромное!!!!!


Собственно говоря мы ручками удаляем мусор...

EmptyWorkingSet
The EmptyWorkingSet function removes as many pages as possible from the working set of the specified process.

BOOL EmptyWorkingSet(
HANDLE hProcess // identifies the process
);

Parameters
hProcess
Handle to the process.
Return Value
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks
You can also use the SetProcessWorkingSetSize function to do what EmptyWorkingSet does if you pass it 0xFFFFFFFF for the minimum and maximum sizes.

See Also
Process Status Helper Overview, PSAPI Functions, EnumProcesses, SetProcessWorkingSetSize
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.