[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
Emanuele, my best bet is you are just using a null pointer somewhere. Something like this, would give the same result : Triangulation *T; T-insert(sphere); Remember that : 1. all engine.action() are executed once when Yade starts. 2. using uninitialised variables/pointers gives random behavior

[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
To all : I found the (some) problems in FlowEngine. Discussion closed. Bruno p.s. Did you know the compiler wouldn't complain with class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } ) Mercredi, 15 Juillet 2009, Emanuele Catalano

[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
To all : I found the (some) problems in FlowEngine. Discussion closed. Bruno p.s. Did you know the compiler wouldn't complain with class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } ) Mercredi, 15 Juillet 2009, Emanuele Catalano

Re: [Yade-dev] Re : yade crash launching xml

2009-07-15 Thread Václav Šmilauer
class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } ) It is a different var; to get the first b, you would have to specify the scope like C::b. Similarly: int i=0; if(a==3){ int i=4; /* another, independent i in the nested scope

[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
To all : I found the (some) problems in FlowEngine. Discussion closed. Bruno p.s. Did you know the compiler wouldn't complain with class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } Mercredi, 15 Juillet 2009, Emanuele Catalano

[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
To all : I found the (some) problems in FlowEngine. Discussion closed. Bruno p.s. Did you know the compiler wouldn't complain with class C { bool b; } C::C () { bool b=true;//declare b again, is it another b or the same one?!!! } Mercredi, 15 Juillet 2009, Emanuele Catalano

[Yade-dev] Re : yade crash launching xml

2009-07-15 Thread chareyre
Due to hmg mail failure, I'm just reading this myself : Oh, obviously SimulationController (#13) is trying to find out if we are using time stepper (asks Omega, #12), but dereference zero (assertion px!=0) shared_ptr (#11, called at Omega.cpp:291). Apparently, since the other thread is just