Since I ported my project from 2.0.1 to 2.1a I get a very odd and random bug, which freezes my program. It seems that every function still works after the freeze except the function that contains "world.Step(timeStep, iterations, iterations);", "world.ClearForces();" and "world.DrawDebugData();". I try to figure out what causes this bug since days, but I have absolutely no clue. Sometimes it even seemed that an empty(!) function which is never called would significantly increace the chance of freezing, but I know that this can't be. Sadly I can't describe the problem further, becaue I really couldn't find the origion of this bug. I tried out the Flash 9 and Flash 10 version of Box2DAS3 2.1a, but I got the bug in both versions.
I think I have to port everything back to 2.0.1 to see, if the bug remains and maybe I find out which piece of code causes the error.
Maybe I can make a testbed, too, to show you the bug.
Anyone else who got random freezes with 2.1a?
EDIT:
Here is a testbed for the freeze-bug. You will get the freeze-bug mostly within the first 2000 frames. (I trace the current number of frames.)
I would be really thankful if anybody could find the reason for the bug. Excuse me for bad coding. I'm not very experienced in programming. Sorry if I left some german comemnts, too.
I think I have to port everything back to 2.0.1 to see, if the bug remains and maybe I find out which piece of code causes the error.
Maybe I can make a testbed, too, to show you the bug.
Anyone else who got random freezes with 2.1a?
EDIT:
Here is a testbed for the freeze-bug. You will get the freeze-bug mostly within the first 2000 frames. (I trace the current number of frames.)
I would be really thankful if anybody could find the reason for the bug. Excuse me for bad coding. I'm not very experienced in programming. Sorry if I left some german comemnts, too.