Re: Sample code?
- From: Michael Meeks <michael ximian com>
- To: Justin Schoeman <justin expertron co za>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: Sample code?
- Date: Mon, 27 Oct 2003 10:06:44 +0000
Hi Justin,
On Thu, 2003-10-23 at 15:38, Justin Schoeman wrote:
> I have gotten to the point of cleaning up my CORBA servers, and am
> trying to get rid of all the 'leaked' objects, and that final exception
> on CORBA_ORB_destroy(_corba_global_orb, local_ev);
>
> At the moment my code is based mostly on the examples in
> orbit-docs.tar.gz, but these all suffer from the same problems. Does
> someone perhaps have some simple reference code for a 'clean' client and
> server?
>
> At the moment, I have my code down to one leaked reference and the final
> exception, but mostly through hacking at the examples, and the testsuite
> in the ORBit distribution. I would really like to do this 'the right
> way' (TM) though. If any body could provide such an example, I would
> greatly appreciate it!
If you do export ORBIT2_DEBUG=refs does it not tell you the type of the
leaked object at exit and it's ref count ?
Ultimately the best way to find reference leaks is binary chop - at
least; that's what I use - there is no magic bullet.
Regards,
Michael.
--
michael@ximian.com <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]