Skip to content

Data pointer transition issue #2

@Nangongchen

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.

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