Hi, with the current release of Event my programs start to fail with
this error message:

   Event: attempt to invoke now() method with callback unset on watcher
   '??' at Event/t/00_basic.t line 13

I do, however, set the callback exactly as specified in the
Event::MakeMaker manpage:

        /* create a fake idle handler (we only ever call now) */
        scheduler = GEventAPI->new_idle (0, 0);
        scheduler->base.callback = scheduler_cb;
        scheduler->base.prio = PE_PRIO_NORMAL; /* StarvePrio */
        scheduler->min_interval = newSVnv (0);
        scheduler->max_interval = newSVnv (0);
        GEventAPI->stop ((pe_watcher *)scheduler, 0);

It seems that the now method checks for this:

    if (!WaPERLCB(wa)) {
      STRLEN n_a;
      croak("Event: attempt to invoke now() method with callback unset on watcher 
'%s'", SvPV(wa->desc,n_a));
    }

And WaPERLCB does not seem to be set on my watcher (if it means "perl
callback" this is not surprising).

Is this a bug in my program, in Event, and is there a fix or a workaround?

Thanks a lot!

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED]      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

Reply via email to