Saving CORBA objects in SilkPerformer for subsequent use in replay
ghObjRef := 0;
· Note that the variable used in the IiopGetObject call, ghObjRef, had to be initialized to 0 within the loop and before its use in the IiopGetObject call. This is because the parameter for storing the CORBA object handle in the IiopGetObject call is defined as inout. To explain further:
· When the CORBA objects in the list are no longer required, they can be released by looping through each element of the list and calling IiopObjectRelease for each CORBA object.
· If more than one variable references a CORBA object, a single IiopObjectRelease call is sufficient to release that single CORBA object. There is no need to repeat the IiopObjectRelease for each variable that reference the CORBA object.