This bug came back with the dizzy timers type. Something related to the EndTrial method. The Trial object is loosing its reference in the wrong time raising RunTime error 216. Need to fix that.
Apparently this bug occurs only when finishing the session by pressing crtl+q (key down event).
Moving the EndTrial method (and the OnEndTrial event inside it) from the KeyDown method to the KeyUp method solved the problem. I think it may be a bug in the LCL... Not sure...
This bug came back with the dizzy timers type. Something related to the EndTrial method. The Trial object is loosing its reference in the wrong time raising RunTime error 216. Need to fix that.
Apparently this bug occurs only when finishing the session by pressing crtl+q (key down event).