Re: bad free after iter->to_arrayref

2008-05-04 Thread Torsten Schoenfeld
Kevin Ryde wrote: > A couple of words for the docs to perhaps keep the unwary out of > trouble: Committed. Thanks! -- Bye, -Torsten ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: bad free after iter->to_arrayref

2008-04-26 Thread Kevin Ryde
muppet <[EMAIL PROTECTED]> writes: > > Yeah, it sucks. Looks like the C level inhales too, really. Ok for in-memory, but hard work if your data is say out on disk. > Alternatives involve putting quite a bit of magic into the bindings at > this point, which would pretty much turn into a custom

Re: bad free after iter->to_arrayref

2008-04-23 Thread muppet
On Apr 23, 2008, at 9:51 PM, Kevin Ryde wrote: > Oh, I get it now, you can return a reference but it's the model's > job to > keep it alive for as long as the iter is good. Hmm. Yeah, it sucks. Alternatives involve putting quite a bit of magic into the bindings at this point, which would p

Re: bad free after iter->to_arrayref

2008-04-23 Thread Kevin Ryde
Oh, I get it now, you can return a reference but it's the model's job to keep it alive for as long as the iter is good. Hmm. (Actually I don't want to return a reference, I was trying ways to keep two integers in my iter ...) ___ gtk-perl-list mailing l

bad free after iter->to_arrayref

2008-04-23 Thread Kevin Ryde
The program below gets an error for me, Attempt to free unreferenced scalar: SV 0x83c10a8, Perl interpreter: 0x8150008. It seems to have something to do with returning a reference as data in an iter. Are you allowed to do that? I saw "Will not persist" in the Gtk2::TreeModel docs, but coul