Menu

#16 Initialization problems with singleton state machines

closed
Runtime (19)
5
2012-09-24
2005-09-24
No

If a state model has a completion transition from the initial state, the
transition is performed synchronously during instance creation using
a special 'creation event'. Normally this won't cause a problem, but if
the class is a singleton this transition, and any entry actions on the
first state, will take place during domain initialization, after the
domain {init} operation but before any class <<init>> operations
have been called; which means that those entry actions had better
not depend on any of the class initializations.</init>

Discussion

  • Simon Wright

    Simon Wright - 2005-09-24

    Logged In: YES
    user_id=917025

    ColdFrame #331.

     
  • Simon Wright

    Simon Wright - 2008-06-09

    Logged In: YES
    user_id=917025
    Originator: YES

    This was actually ColdFrame #330.

     

Log in to post a comment.