
Hi Georg [snip]
It the statemachine exits, i get constantly crashes in the process_event<EvWork>() function, because the statemachine itself got destructed and outermost_context() is no more vaild, but the state which holds my timeout object (and the thread) did not yet got destructed and therefore the thread stopped.
I dont have an idea to solve that problem. There is an assertion: "get_pointer( pOutermostUnstableState_ )==0" in state_machine.hpp.
It does only happen if there was a transition from one state (DoStuff1) to DoState2.
It seems the solution to your problem can be found in the following FAQ entry: http://www.boost.org/libs/statechart/doc/faq.html#AssertInStateDestructor HTH, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.