[Kde-perl] Freeing memory used by QTableItem

Richard Dale Richard_Dale at tipitina.demon.co.uk
Sat Jul 10 11:34:22 CEST 2004

On Friday 09 July 2004 12:22, Oliver Kreuer wrote:
> my $junk = Qt::PushButton("Hello World!", undef);
> Qt::dispose($junk);
> this works fine. But I tried my example program (see attachment)
> and I got the following error messages:
> QGVector::remove: Index -2 out of range
> QGVector::remove: Index -2 out of range
Yes, that still happens.

> Memory fault
He's a version of the patch that works like this:

my $junk = Qt::PushButton("Hello World!", undef);
if ($junk->isDisposed()) {

It also has the fix for the crash problem.

$ cp perlqtdispose_0.2.patch PerlQt-3.008
$ cd PerlQt-3.008/PerlQt
$ patch -p1 < ../perlqtdispose_0.2.patch

Then make and install PerlQt

I'm looking into the resize/not updating bug now. I would have thought it was 
a bug in Qt - It also happens in qtruby, but you say it doesn't happen with 
C++ - which is interesting. Hmm..

Trying to help out with perlqt fixes is actually a good way of improving 
qtruby too. Thanks for the example code..

-- Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perlqtdispose_0.2.patch
Type: text/x-diff
Size: 2707 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-perl/attachments/20040710/1555c715/perlqtdispose_0.2.bin

More information about the Kde-perl mailing list