Re: Problem with global destruction



On Mon, 2007-03-19 at 17:23 +0000, Emmanuele Bassi wrote:


try adding a FINALIZE method in your Gtk2::ScrolledWindow subclass, and
explicitely remove the image:

  sub FINALIZE {
    my ($self) = @_;

    warn "Inside finalize\n";

    $self->remove($self->{image});
    delete $self->{image}; # this should not be needed
  }

sorry, it's FINALIZE_INSTANCE.  too much coding in C. :-)

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]