View Revisions: Issue #1769

Summary 0001769: Crash inside event handler
Revision 2020-08-05 11:15 by jsantos
Description We are in the process of testing Noesis 3.0 with our codes.
Currently we are experiencing crashes inside our event handlers (which worked back in 2.2.6).
Debugging the problem reveals that something bad happen when inside a MouseDown handler, we are attaching another MouseDown handler.

# Internally there seems to be conversion from SingleDelegate to MultiDelegate ? Not sure ...

It's difficult for us to create a repro for this bug, but we happened to be able to avoid the crash with the attached Delegate.inl.patch.

Could you please check if the patch makes sense ? It seems that mVector->v may be replaces inside the handler, so it's not safe to use the expression for (Delegate& d: mVector->v) ?
Revision 2020-08-04 14:42 by nikobarli
Description We are in the process of testing Noesis 3.0 with our codes.
Currently we are experiencing crashes inside our event handlers (which worked back in 2.2.6).
Debugging the problem reveals that something bad happen when inside a MouseDown handler, we are attaching another MouseDown handler.

# Internally there seems to be conversion from SingleDelegate to MultiDelegate ? Not sure ...

It's difficult for us to create a repro for this bug, but we happened to be able to avoid the crash with the attached Delegate.inl.patch.

Could you please check if the patch makes sense ? It seems that mVector->v may be replaces inside the handler, so it's not safe to use the expression for (Delegate& d: mVector->v) ?