Microsoft SDK for Java

GCSetObjectReferenceForHandle

Garbage-collection safe method for updating the contents of a handle.

Syntax

void __cdecl GCSetObjectReferenceForHandle(HObject **handle, HObject *phobj);

Parameters

**handle The result of calling GCGetPtr for a weak pointer or GCNewHandle for a strong handle.
*phobj The new object pointer.

Remarks

If handles are not updated using a garbage-collection safe method, the Microsoft VM will fault during the next garbage collection.

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