The only thing that it says in the manual about "the wrong way to set events" is that you should use my.event = event_scan; instead of my.event = event_scan(); So that doesn't seem to be your problem. Could you maybe post your code so we can get the "big picture"?