RequestPartitialClean;
The RequestPartitialClean method starts one iteration of garbage collection.
During one iteration of garbage collection, the memory is cleaned of the objects that are already explicitly marked as non-used and do no depend on other objects.
Add a link to the Fore system assembly.
Sub UserProc;
Var
GC: IForeGarbageCollector;
Begin
GC := New ForeGarbageCollector.Create;
GC.RequestPartitialClean;
End Sub UserProc;
Executing the example starts one iteration of garbage collection.
See also: