Re: Newbie : Garbage Collection of Sequences (Server Side)



Hi,

On Tue, 6 Nov 2001, Mr C.A.Beazley wrote:

> Hi,
>
> I'm very new to CORBA and am using Orbit with the C mappings.
>
> I'm trying to write a CORBA server which returns a large sequence of strings
> to the client.  I don't know before hand how large the sequence will be so I
> am using a unbounded sequence
>
> The problem I'm having is that once  I've returned the sequence, I don't know
> how get the server to free up the memory allocated to the sequence, which
> results in large memory leakage.
>
> Where do I put the the clean up code and how do I invoke it?

	You get it for free :). Once the ORB has marshalled your
sequence it will free it for you.

	There's a lovely table in section 1.21 of the C language
mapping that lays out this kind of stuff.

Good Luck,
Mark.




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