Boost logo

Boost :

Subject: Re: [boost] [msm] deferral stack overfolw
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2011-12-01 17:06:11


> Hi Christophe
>
> just playing around with event deferral I have found a problem which
> leads to a stack overflow it ends in an infinite loop if I want to
> defer 2 events in the same state.
>
> see attached example it somehow similar to the problem we had earlier
> but that was fixed ...
>
> I have ran this test on MSM trunk version from yesterday.
>
> Cheers
> Richie

Hi Richard,

ah, how could I miss this? There is a mistake in your LogDefer functor:
typedef int deferring_action;

This should be defined in the functor, not inside operator(). Then there
will be no overflow.

Cheers,
Christophe

PS: any news about your VC9 problem?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk