Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost][msm] std::vector<MyStateMachine> generate stack overflow
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2011-05-18 14:25:04

>while playing with MSM using VS2010+SP1 in a very simple test project (I'm really just trying to test how to organize states classes in files), I've tried to see if I was able to create as many
>state machines as I wanted, so I started to write a simple
> std::vector<MyStateMachine> state_machines(42);
>Here MyStateMachine is an empty state machine class with default front-end and back-end, with only two empty states.
>VC10.1 produce a warning on this line saying that there will be a stack overflow because there is a runtime recursion. I checked, it does crash (in debug at least).

I'd be quite surprised that it has much to do with the vector. I tried
for security on a tutorial and all works ok.
I'd more likely suspect an incorrect state machine definition, but
without code I cannot help you much.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at