> Aaron,
> 
> Only functions directly called by the OS need to include the
> prologue and epilogue code. The methods the callbacks call
> do not need them.

  i read that in the docs.. :) only my two event handlers
  use the PROLOGUE and EPILOGUE :P
 
> Mmm... make sure that the epilogue code always gets called.
> One common mistake with the prologue/epilogue code is this:
> 
> Boolean SomeEventHandler (......)
> {
>    CALLBACK_PROLOGUE
> 
>    switch (event->etype)
>    {
>       case someCase:
>          ...            // event is handled
>          return true;   // XXX Error!
>       ...
>    }
> 
>    CALLBACK_EPILOGUE
> 
>    return handled;
> }

  definately not the case.. i ENSURE that all my routines
  have ONLY one return :)
 
> In the above code, CALLBACK_EPILOGUE doesn't get called if 
> "someCase" is handled, which is an error.

  understood.. it is interesting how if i repeat the 
  steps, the error occurs 60% of the time :)

az. 
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

Reply via email to