Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost Statechart] Execute Function
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-09-30 04:45:00


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. 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net