Impossible to call a method through a port in the entry of the starting state of a state machine [message #1808439] |
Mon, 24 June 2019 11:55  |
Eclipse User |
|
|
|
Hello,
I detected an issue with the generation of state machine in C++ code. When the state in which the state machine is initialized contains a call to an operation through a port, the program crash at runtime. The code is well compiled. No issue for other states, no issue for calling intern operations.
Example of code :
broadcast->myOperation();
I built a minimal model to reproduce this issue (DemoIssue). If I remove the call through the port, no more issue. It is probably due to the fact that at the instantiation of the class and the initialisation of the state machine, the port is not yet initialized and we found a nullptr.
Regards.
Yoann.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05552 seconds