Re: Re[2]: Does GTK leak memory



On Wed, 2010-06-02 at 15:39 +0200, Lothar Scholz wrote:

> By the way, is there any way to find out what the reference count of
> an object is?

you really don't want to know that - because threads and
auto-vivification during dispose cycles might change that value beneath
your seat.

if you want to know whenever an object has been unreferenced for the
last time and it's not valid any more you should use weak references. if
you want to know whenever an object has been unreferenced for the last
time before being invalid, see the toggle reference API.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi



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