There are a number of rules relating to memory management that
you must follow when developing web
service client applications.
- Objects that are passed to or obtained from the web service method as
pointers are the responsibility of the client application.
- Objects that are defined as a class hide the objects that they contain
and instead have get and set methods to manipulate the object contents.
- For objects that are classes and used as inputs, the client application
is responsible for the deletion of these objects when they are no longer required.
- For objects that are classes and used as outputs, the client application
is responsible for the deletion of these objects when they are no longer required.
They must not delete any object that is returned from a call to the ‘get’
method as this will be deleted by the parent when the parent object is deleted.