Flash crashes constantly with files using Box2d WCK

There's not much else to say but that.
It also lags a lot. I can take seconds to display the component properties after clicking on a wck component.
More importantly though, it crashes all the time. Especially when there are 2 files opened in flash.

I use Flash cs5.5 btw.
How can I fix this?
Yeah Flash can be infuriating sometimes with its instability. Especially on a Mac. I've noticed it's a bit more stable when I increase the memory limit for the java vm:

http://kb2.adobe.com/cps/405/kb405257.html

Original thread: https://box2d.org/forum/viewtopic.php?t=8091