Guard condition troubleshooting

Category |  Applicable to |  Description


Category:

Top

C++


Applicable to:

Top

All Versions


Description:

Top

A missing 'return' statement is most often the cause of problems associated with guard conditions not executing as expected.

Make sure you have a 'return' statement in the guard condition expression.

For example, if you are calling a function myfunc() in the transition guard, you must have a return statement right before the function call itself.

e.g.

    return myfunc();


 

Copyright © 1999, ObjecTime Limited.