Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: reference counting again: msg#00008

Subject: Re: reference counting again
On Wed, 12 Jun 2002, Chaoron wrote:

> I could not find any error in my code.

Sorry, I don't get it. If you uncomment the line with the unref, then you
are unref-ing the same node twice! No wonder you get in troubles. Or was
the program supposed to segfault without touching it? In that case it
works for me => no segfault (but I admit I have a slightly different
system configuration).

Also,you are using tmpnode _after_ you have unreferenced it, when you call
treegc_livenodes. In some cases you might be lucky, but in general it is a
very bad idea.

uh?
<luca/>


<Prev in Thread] Current Thread [Next in Thread>