Opened 8 years ago

Closed 8 years ago

#3220 closed Bugs (invalid)

Event responded to multiple times in one update

Reported by: anonymous Owned by: Andreas Huber
Milestone: Boost 1.40.0 Component: statechart
Version: Boost 1.39.0 Severity: Problem
Keywords: statechart orthogonal event dispatch Cc:


I have created a state that has three orthogonal regions. This states to an event, evSay, by printing a message. One of the child states posts evSay in its ctor. Instead of the expected message, I get teh message repeated three times.

see attached code

Attachments (1)

bug.cpp (1.2 KB) - added by anonymous 8 years ago.
code example

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by anonymous

Attachment: bug.cpp added

code example

comment:1 Changed 8 years ago by anonymous

Resolution: invalid
Status: newclosed

The observed behavior is in line with the one specified in the reference:


Line number 38 of bug.cpp currently reads ...

return forward_event();

Replace this with ...

return discard_event();

... and the program should then work as expected.

Note that forward_event() should only be used in cases where a react member function determines that the passed event should be handled either in an outer state or a different orthogonal region.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Andreas Huber.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.