Re: Gtklist and memory leakage



Hi,

"Ian King" <king eiffel com> writes:

> If it is allocating memory for 128 elements at a time.  If I place 50 in the
> list, remove them, then add another 50, wouldn't this preallocated memory be
> reused.  It seems as though more memory is being allocated each time instead
> of reusing any previously allocated memory.

this shouldn't happen.

> The same thing also happens with buttons in boxes, in fact anything with
> gtk_container_add I guess is doing this.  The way it is at the moment if I
> keep adding and removing eventually I will run out of memory, which is of
> course bad.  Is this correct?

no it is not and I have no idea why this happens to you.


Salut, Sven




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