jettero has asked for the wisdom of the Perl Monks concerning the following question:
Not that you'd ever need to do something like this, but could you?
use Gtk; Gtk->init; Gtk->set_locale; for(1..200) { my $o = new Gtk::Window; undef $o; sleep 1; print "$_\n"; }
Load up top, hit 'M', and watch the thing grow evilly... I tried using delete instead of undef, but it didn't help.
I actually have a very good reason for this. I need to generate Gtk::CList's on the fly, but I realized I have no way to delete the old ones... I could really use some help here. Actually, a solution to changing the number of columns in a Gtk::CList would be equally helpful. ;)
How do you delete an unwanted object in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Acky Memory
by Dominus (Parson) on Nov 12, 2000 at 19:29 UTC | |
by Aristotle (Chancellor) on Oct 27, 2002 at 13:07 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2002 at 13:57 UTC | |
|
Re: Acky Memory
by chromatic (Archbishop) on Nov 12, 2000 at 06:13 UTC | |
by quidity (Pilgrim) on Nov 12, 2000 at 16:50 UTC | |
|
Re: Acky Memory
by mirod (Canon) on Nov 12, 2000 at 14:48 UTC | |
by Dominus (Parson) on Nov 12, 2000 at 18:53 UTC | |
by mirod (Canon) on Nov 12, 2000 at 19:35 UTC |