On Sat, Jun 15, 2013 at 2:33 AM, dE <de.tec...@gmail.com> wrote:
> On 06/14/13 22:09, Chris Vine wrote:
>>
>> On Fri, 14 Jun 2013 21:41:05 +0530
>> dE<de.tec...@gmail.com>  wrote:
>>>
>>> On 06/14/13 17:02, Matthias Clasen wrote:
>>>>
>>>> On Fri, Jun 14, 2013 at 3:27 AM, dE<de.tec...@gmail.com>  wrote:
>>>>>
>>>>> I was monitoring the memory usage before and after execution of
>>>>> g_object_unref and gtk_list_store_clear, and it didnt change the
>>>>> memory usage by a bit.
>>>>>
>>>>> Is this normal (am I doing it right?)?
>>>>
>>>> What are you monitoring, and how ?
>>>>
>>>> It is i normal that freeing memory does not change the resource
>>>> consumption of the process. The freed memory will be available for
>>>> reuse by malloc, but malloc does not immediately return the memory
>>>> to the OS.
>>>
>>> No, filled more than 7GB, swap was at ~350 MB, and then I loaded a
>>> small table which would otherwise take less than 10 MB memory, but
>>> the memory usage increased.
>>
>> Can you post the smallest compilable program which demonstrates your
>> problem (run with G_SLICE=always-malloc set), and with particulars of
>> how you are measuring memory usage?  That should identify if you are
>> doing something wrong with how you are handling the memory in your
>> program.
>>
>> Chris
>>
>
> You can have the whole source code:
>
> http://pastebin.com/4a5DiMsQ
>
> I'd been distributing it around to fix issues.

dE,

Surely you can conjure something small which you expect
not to leak memory, but does.

Obviously, there must be a leak in this program, but
sending us this huge file sort of implies that we should
do the debugging and find your memory leak for you.

If you send us something small, as Chris says:
    "the smallest compilable program which demonstrates
     your problem",

then we can surely easily spot the problem and guide you
on how to fix it, without spending our time doing your homework.

Cheers,
    -Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to