Joost Kraaijeveld
2009-11-23 14:33:43 UTC
Hi,
I am curious about the memory management in an ORB implementation. If an
interface returns a pointer (_ptr) to an object that is part of an ORB's
implementation, who owns that pointer and is responsible for the
deletion of that pointer, e.g. a pointer returned from
orb->resolve_initial_references()? Or are all the local objects
reference counted somehow and is the callee responsible for bumping the
reference count so that the caller can safely store the pointers in a _var?
Or is there a kind soul somewhere with a pointer to some docs where I
can read about the memory management of an ORB implementation?
TIA
Joost
I am curious about the memory management in an ORB implementation. If an
interface returns a pointer (_ptr) to an object that is part of an ORB's
implementation, who owns that pointer and is responsible for the
deletion of that pointer, e.g. a pointer returned from
orb->resolve_initial_references()? Or are all the local objects
reference counted somehow and is the callee responsible for bumping the
reference count so that the caller can safely store the pointers in a _var?
Or is there a kind soul somewhere with a pointer to some docs where I
can read about the memory management of an ORB implementation?
TIA
Joost