Re: all about gobject references

2009-08-22 Thread Emmanuel Rodriguez
On Sat, Aug 22, 2009 at 3:12 PM, Tadej Borovšak wrote: > Hi > > > but when i put it throught valgrind tool it says 156 bytes loss in memory > > Analyzing glib code with valgrind requires some preparation or false > positives are reported. Ask your favorite search engine about this and > you shoul

Re: all about gobject references

2009-08-22 Thread Tadej Borovšak
Hi > but when i put it throught valgrind tool it says 156 bytes loss in memory Analyzing glib code with valgrind requires some preparation or false positives are reported. Ask your favorite search engine about this and you should be able to find some documentation. Tadej -- Tadej Borovšak 0038

Re: all about gobject references

2009-08-22 Thread Siddu
On Sat, Aug 22, 2009 at 5:51 PM, Tadej Borovšak wrote: > Hi. > > > but still after reading thoroughly i am unable to figure out why the > > ref_count would be "4" for gtk_window_new() call ? > > After gtk_window_new call, refcount is 1. Additional references are > added by callback mechanism. (T

Re: all about gobject references

2009-08-22 Thread Tadej Borovšak
Hi. > but still after reading thoroughly  i am unable to figure out why the > ref_count would be "4" for gtk_window_new() call ? After gtk_window_new call, refcount is 1. Additional references are added by callback mechanism. (Try adding print statement right after the creation and you'll see.)

Re: all about gobject references

2009-08-22 Thread Siddu
On Sat, Aug 22, 2009 at 5:45 PM, Siddu wrote: > > > On Sat, Aug 22, 2009 at 5:24 PM, Tadej Borovšak wrote: > >> Hi. >> >> >> Hi all, >> >> I want understand Gobject in its entirety . mostly about references >> >> (floating, weak , not so weak) and *memory management* . Is there any >> >> pointer

Re: all about gobject references

2009-08-22 Thread Tadej Borovšak
Hi. >> Hi all, >> I want understand Gobject in its entirety . mostly  about references >> (floating, weak , not so weak) and *memory management* . Is there any >> pointers you could point me to read . I wrote a simple forum post about this issue a while ago that should get you started: http://gtk

Re: all about gobject references

2009-08-22 Thread Siddu
On Sat, Aug 22, 2009 at 5:10 PM, Siddu wrote: > Hi all, > I want understand Gobject in its entirety . mostly about references > (floating, weak , not so weak) and *memory management* . Is there any > pointers you could point me to read . > As a part of the above question the follwing program re

all about gobject references

2009-08-22 Thread Siddu
Hi all, I want understand Gobject in its entirety . mostly about references (floating, weak , not so weak) and *memory management* . Is there any pointers you could point me to read . -- Regards, ~Sid~ I have never met a man so ignorant that i couldn't learn something from him __