Re: [mico-devel] Who has to free Any pointer from CosEventComm::PullSupplier::pull()?

2009-01-19 Thread Karel Gardas
Hi, short answer is: caller is responsible for freeing memory. Long answer is contained in any decent CORBA book dealing with C++ mapping. My favorite is Advanced CORBA Programming in C++ by Henning/Vinoski. Cheers, Karel Schmidt Thomas wrote: Hi, when writing some pull-event supplier I

[mico-devel] Who has to free Any pointer from CosEventComm::PullSupplier::pull()?

2009-01-18 Thread Schmidt Thomas
Hi, when writing some pull-event supplier I think I've to return a dynamically allocated Any pointer. Who has to take care of freeing this variable? F.e. some code fragments from my example server program SinusGenerator: CORBA::Any *SinusGenerator_impl::pull() {