Microsoft SDK for Java

GCSetObjectReferenceForObject

Garbage-collection safe method for updating the fields in an object.

Syntax

void __cdecl GCSetObjectReferenceForObject(HObject **location, HObject *phobj);

Parameters

**location The pointer to a field of an object.
*phobj The new object pointer.

Remarks

The safest method to set a field in an object is to use the Field_SetValue method. If objects 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.