Initialization problems with singleton state machines
Brought to you by:
simonjwright
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>
Logged In: YES
user_id=917025
ColdFrame #331.
Logged In: YES
user_id=917025
Originator: YES
This was actually ColdFrame #330.