Microsoft SDK for Java

GCDisableMultiple

Increments the block count a specified number of times.

Syntax

void __cdecl GCDisableMultiple(int cDisable);

Parameters

cDisable The number of times to increment the block count.

Remarks

This function is useful when you have previously called GCEnableCompletely to allow garbage collection on all referenced objects, but later want to reinstate the block count with one call. The following example shows enabling garbage collection around a sleep call.

    int nEnable = GCEnableCompletely();
    Sleep( (int) millis );
    GCDisableMultiple(nEnable);

© 1999 Microsoft Corporation. All rights reserved. Terms of use.