Box2d Destroy Shape or Body when Out of Bounds

Hello again!
I’m using the box2D addon and am trying to create circular shapes that fall from the top of the screen to the botom, and after that I want to delete them when they get out of bounds of the screen, in order to limit the ammount of shapes being processed.

I read a few post about destroyBody failing sometimes, but I’m not sure. Also, there a section of Box2D addon that has been commented that I think might be why it doesn’t work for me. All I could figure out was this:

  
    for (int i=0; i < circles.size(); i++) {  
        ofPoint tmppos = circles[i].getPosition();  
        if (tmppos.y > 600){  
            physics.world->DestroyBody(circles[i].body);  
        }  
    }  

any help would be appreciated.

Is bCheckBounds not working? (inside ofxbox2d.cpp)

This is an old question and it´s resolved before in the forum.

If you get here with the same problem head to:
http://forum.openframeworks.cc/t/how-to-destroy-bodys-in-ofxbox2d/3930/0

That worked for me.