[orbitcpp-list] Destroying CORBA objects
Status: Beta
Brought to you by:
philipd
From: Sam C. <sa...@to...> - 2000-10-17 06:05:43
|
All, I have a CORBA application that creates many objects on the server side, continuously. I need a way to destroy these objects to avoid memory leaks. The application was previously using ORBit, and all I did was provide a free() method on each object, which the client called when it was finished with the object. Now that I need to tie the application into a C++ API, I've decided to use ORBitcpp. So, how do I destroy an object in the server in ORBitcpp? I know how to create one (the Account/Bank example), but doing "delete(this)" to destroy it seems like suicide to me. Should I provide a bunch of freeObjectFoo() methods on the factory object that's creating them all in the first place? This doesn't seem like the correct solution. If I do this, what do I need to do to destroy the objects passed to this method? Thanks. --=20 Sam Couter | Internet Engineer | http://www.topic.com.au/ sa...@to... | tSA Consulting | PGP key available on key servers PGP key fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C |