OSLib 6.70 released

Tony van der Hoff tony at mk-net.demon.co.uk
Tue Aug 3 13:41:38 BST 2004


Tony van der Hoff <tony at mk-net.demon.co.uk> wrote in message
<gemini.i1vcdx04b8zpc02j6.tony at mk-net.demon.co.uk>

> Erik Groenhuis <e.groenhuis at xs4all.nl> wrote in message
> <2fbb69d74c.root at hop2.xs4all.nl>
> 
> [snip]
[snip]
> 
> > Some points of attention are:
> > 
> > - event_poll() and event_poll_idle():
> >   Contrary to the regular versions, these functions from OSLibSupport
> >   do not accept NULL parameteres for the event_code and poll_block
> >   parameters. They must point to actual objects of type wimp_event_no
> >   and wimp_block respectively. Calling event_poll(0,0,0) will usually
> >   crash the program. The poll_word parameter is required when and only
> >   when the Pollword is used (as determined by the mask passed to
> >   event_set_mask() ).
> > 
> OK, good idea. I'll look at fixing this.
> 
Well, ISTM that event_poll(_idle) just call Wimp_Poll(_idle), passing on the
parameters. So the crash is nothing to do with the poll word pointer; this
can quite happlily be NULL (provided mask bit 22 is 0)

However, passing it a NULL for the poll block pointer seems a bit of a
suicidal thing to do, and I can't see that working in Acorn's event library
either.

So, I see no bugs here...
-- 
Tony van der Hoff
Buckinghamshire England



More information about the oslib-user mailing list