The invocation of wpObjectReady is a signal that the object creation or awakening is complete. The following sample code uses this method to increment the persistent object count:
SOM_Scope void SOMLINK stk_wpObjectReady(
Stack *somSelf, // In - pointer to the object
ULONG ulCode, // In - type of operation completed
WPObject *refObject) // In - pointer to the source
// object, if copy/shadow create
{
// StackData *somThis = StackGetData(somSelf);
StackMethodDebug("Stack","stk_wpObjectReady");
parent_wpObjectReady(somSelf, ulCode, refObject);
if (!(ulCode & OR_AWAKE))
{
_clsIncObjectCount(_somGetClass(somSelf), STK_PERSISTENTCOUNT);
} /* Endif */
return;
} // End stk_wpObjectReady