>>>>> "DN" == Damien Neil <[EMAIL PROTECTED]> writes:
DN> (Does this mailing list exist? My mail to [EMAIL PROTECTED] and
DN> [EMAIL PROTECTED] doesn't return. Perhaps mail on perl.org
DN> is just slow.)
it exists.
DN> The following program segfaults after one second (when the watcher
DN> triggers):
DN> use Event;
DN> my $w = Event->timer(after => 1, cb => sub {});
DN> $w->cb(undef);
DN> Event::loop;
so don't do that. it is kinda silly even if it worked. you stop the
watcher and then delete it.
remember, the callback if it is an object and method is going to create
a data loop which can leak. so always shutdown the watcher first to make it
free up the back links and then delete the watcher itself.
uri
--
Uri Guttman --------- [EMAIL PROTECTED] ---------- http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html