Microsoft SDK for Java

alloc

This method of the Root class creates a new root handle.

Note   Root handles require explicit deallocation using the free method. The object will not be reclaimed by the garbage collector until the free method is called.

Syntax

public static int alloc(Object object);

Return Value

Returns a new root handle that protects the object from garbage collection.

Parameters

object The object that the root handle is created for.

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