Skip to content

Data pointer transition issue #2

Description

@Nangongchen

Hi,
I've tried to use this statemachine and deliver the data pointer (subclass of the Eventdata* )through states.
The issue happens on the state 3, when state 3 is done, it should do state 1 with state 3 data.
The states transition is: idle--button 0-->state 1--button 1-->state 3--interEvent-->state 1(Error happend)

When"delete pdataTemp" called in function StateMachine::StateEngine it was deleted twice.
So I added a new logic to skip the error warning but not sure it's solved.
image
Do you have some better solutions for that?

reguards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions