Re: Sample code?



Thanks, I actually figured out the debug options late on Friday, and 
cleaned up my code.  Now exits nice and cleanly.

Should I try to clean up and package the code as a simple example (like 
the echo example), to be reviewed by people who actually know about 
CORBA!, and hopefully added as an example?  I don't know how many other 
lazy coders there are out there who, like me, like to start with a clean 
example, and work from there!

Thanks,

-justin

Michael Meeks wrote:
> 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.
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]