Make sure your receiver variable is of type T_irrIEventReceiver. like so:
If you do it like this, then you'll get the above error.
Another possibility is a spelling error
Local receiver:T_irrIEventReceiver=T_irrIEventReceiver.create(MyEventReceiver.generate)
If you do it like this, then you'll get the above error.
Local receiver=T_irrIEventReceiver.create(MyEventReceiver.generate)
Another possibility is a spelling error
Local receiver:T_irrIEventReceiver 'the swapped i-e in receiver will make reciever an Int reciever=T_irrIEventReceiver.create(MyEventReceiver.generate)