Closed GoogleCodeExporter closed 9 years ago
Oh. Check that the function calling back the listeners is actually in try/catch:
MouseTrackingDevice.this.listenerLock.lock();
// And dispatch it to the listener
for (int i = 0; i < MouseTrackingDevice.this.trackingListener.size(); i++) {
final EyeTrackingListener l = MouseTrackingDevice.this.trackingListener.get(i);
l.newTrackingEvent(event);
}
MouseTrackingDevice.this.listenerLock.unlock();
Original comment by r.biedert
on 15 Oct 2010 at 1:10
Same applies to tracking server device:
try {
// And dispatch it to the listener
for (int i = 0; i < ServerTrackingDevice.this.trackingListener.size(); i++) {
final EyeTrackingListener l = ServerTrackingDevice.this.trackingListener.get(i);
l.newTrackingEvent(trackingEvent);
}
} finally {
ServerTrackingDevice.this.listenerLock.unlock();
}
Original comment by r.biedert
on 15 Oct 2010 at 1:11
Important: LOG if there was an exception thrown in one of the listeners. Code
is from trackingdevices/eyes/* btw.
Original comment by r.biedert
on 15 Oct 2010 at 1:13
Added handler, should verify results.
Original comment by r.biedert
on 28 Oct 2010 at 11:44
Seems to work.
Original comment by r.biedert
on 28 Oct 2010 at 11:59
Original issue reported on code.google.com by
r.biedert
on 14 Oct 2010 at 5:40