Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!munnari.oz.au!labtam!eyrie!guru!dcole From: dcole@guru.pub.uu.oz.au (Dave Cole) Newsgroups: comp.sys.amiga.programmer Subject: Input Device Message-ID: <54kHX1w163w@guru.pub.uu.oz.au> Date: 16 Feb 91 18:12:51 GMT Organization: The Guru Meditation BBS Lines: 22 I have been trying to get an input handler working without much success. I can make the handler discard all mouse events, but as soon as I try to pass a message from the handler to the mainline via PutMsg() I get a guru (00000003 - Odd address). I have no idea where the odd address is coming from. In the mainline I initialise a message port and an array of messages to be used by the handler for passing Input Events to the mainline. All of this data is stored in a structure which is passed via the ADDHANDLER input device command. The code does not guru if I comment out the PutMsg() statement in the handler function. I have based my code on the example in the RKM, but they do not pass messages from their handler, they use signals. The doco says that you can call PutMsg() from your handler. What can I be doing wrong. Any suggestion would be appreciated. All of the examples I have seen create a Timer which feeds into the Input Device. I have assumed that you only do this if you require a time-out, and have not put one in my code. Thanks in advance - Dave.