How to solve a crash problem
Posted: Tue Apr 07, 2009 8:46 am
Hey everyone,
I've programmed a game that makes use of box2d physics, it seems to work nicely for a while, not getting any errors, BUT it randomly crashes--the window just closes suddenly. Objects are being created and destroyed approximately every second but theres hardly ever more than 2 objects in existance at the same time. It appears to happen on collision between an object and a sensor, or possibly on destroying the object (just to be clear i destroy both the body and the shape). The machine I'm using is powerful and should be able to handle this. One more thing, It seems totally unpredictable, i can sometimes use it for several minutes before it happens, and other time it'll crash much quicker.
What are the possible causes for crashes like this? If i know the possibilities i might be able to isolate the problem and fix it. Thanks.
I've programmed a game that makes use of box2d physics, it seems to work nicely for a while, not getting any errors, BUT it randomly crashes--the window just closes suddenly. Objects are being created and destroyed approximately every second but theres hardly ever more than 2 objects in existance at the same time. It appears to happen on collision between an object and a sensor, or possibly on destroying the object (just to be clear i destroy both the body and the shape). The machine I'm using is powerful and should be able to handle this. One more thing, It seems totally unpredictable, i can sometimes use it for several minutes before it happens, and other time it'll crash much quicker.
What are the possible causes for crashes like this? If i know the possibilities i might be able to isolate the problem and fix it. Thanks.