IForeGarbageCollector.RequestPartitialClean

Fore Syntax

RequestPartitialClean;

Fore.NET Syntax

RequestPartitialClean();

Description

The RequestPartitialClean method starts one iteration of garbage collection.

Comments

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.

Fore Example

Sub UserProc;
Var
    GC: IForeGarbageCollector;
Begin
    GC := 
New ForeGarbageCollector.Create;
    GC.RequestPartitialClean;
End Sub UserProc

Executing the example starts one iteration of garbage collection.

Fore.NET Example

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:

IForeGarbageCollector