Re: I met a strange problem: after dispose g_object_ref could also succeed!

2009-06-19 Thread Dan Kegel
On Fri, Jun 19, 2009 at 1:20 AM, Peter Cai wrote: > I met a strange problem: after dispose ( or during dispose) g_object_ref > could also succeed! Have you tried running your program under Valgrind? If that finds any warnings, your program's behavior is ill-defined, and all bets are off. You sho

I met a strange problem: after dispose g_object_ref could also succeed!

2009-06-19 Thread Peter Cai
I met a strange problem: after dispose ( or during dispose) g_object_ref could also succeed! http://pastebin.com/d631246a7 It crashes on line 24, which is almost impossible. 1st, I checked these variables. 2nd, I called g_object_ref(self) to avoid self being disposed while this function has not r