cpicanco / stimulus_control

A teaching machine for free behavioral experiments
GNU General Public License v3.0
11 stars 7 forks source link

Crash on end session. #27

Closed cpicanco closed 9 years ago

cpicanco commented 9 years ago

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).

cpicanco commented 9 years ago

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...