[omniORB] problem with _dispose()
Sai-Lai Lo
S.Lo@orl.co.uk
Mon, 20 Apr 1998 17:08:16 +0100
Try this:
> try {
> ns-> bind(CName, _this());
^^^^^^^^^^^ Object reference returned by _this()
is not freed.
instead do this:
CORBA::Object_var ov = _this();
ns->bind(CName,ov);
See section 5.3 Object Disposal in the user guide for an explanation of why
the object is not deleted in your example.
Regards,
Sai-Lai
--
Dr. Sai-Lai Lo | Research Scientist
|
E-mail: S.Lo@orl.co.uk | Olivetti & Oracle Research Lab
| 24a Trumpington Street
Tel: +44 223 343000 | Cambridge CB2 1QA
Fax: +44 223 313542 | ENGLAND