← Back to team overview

yade-dev team mailing list archive

Crash in a loop

 

Hi, all!

I am working now on PSD-engine. I have found that next loop gives sometimes
a crash. Not always:

    FOREACH(const shared_ptr<Body>& b, *scene->bodies){
        if (!b) continue;
        YADE_PTR_CAST<RpmState>(b->state)->specimenNumber = 0;
        YADE_PTR_CAST<RpmState>(b->state)->specimenMass = 0;
    }

Can anybody advice me, what is the problem with this loop?

Thanks you.

______________________________
Anton Gladkyy

Follow ups