RequestPartitialClean;
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.
Sub UserProc;
Var
GC: IForeGarbageCollector;
Begin
GC := New ForeGarbageCollector.Create;
GC.RequestPartitialClean;
End Sub UserProc
Executing the example starts one iteration of garbage collection.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Fore;
Public Shared Sub Main(Params: StartParams);
Var
Svc: IForeServices;
Run: IForeRuntime;
Begin
Svc := Params.Metabase As IForeServices;
Run := Svc.GetRuntime();
Run.RequestPartitialClean();
End Sub;
See also: