Eyelink: In PsychEyelink_get_input_key(): Error condition detected

Hi, 


    When we run eyelink demo, if ctrl+c is pressed during calibration, I see the message on the matlab console: 


Eyelink: In PsychEyelink_get_input_key(): Error condition detected: Trying to send TERMINATE_KEY abort keycode!



the demo freeze, I have to force matlab to quit. 


I am trying to fix this bug and hope I can get some idea about it here. Thanks a lot!





If you press CTRL+C while the calibration code calls into PsychEyelinkDispatchCallback.m then that call will return with an "aborted by user" error and error handling will trigger and do what you see.

That's probably unavoidable, so i suggest not pressing CTRL+C during a calibration, but define some proper way to stop a calibration if you need that, e.g., by customizing PsychEyelinkDispatchCallback.m for your purpose. Search the forum for an explanation of how to do that or how to define your own callback altogether.

-mario
Thank you very much!
Li