Hmm - When I break my 1.6MB binary file into 3 separate ~0.5MB files then it works and I don't get the heap error message. This kind of seems strange, but I guess I'll keep working and see if I come across any more limits.
This heap error bug is very painful though. I've had to keep changing my architecture over and over again to get around problems and limitations with Flash Builder. This seems rediculous to me, but I'll have to plod along with what it is...
Ditto. I was doing just fine with my Flex Mobile app... till I started blitting and converted my MovieClips to embeded SpriteSheets... Now I get a heap error when code hints run, I compile, etc, etc.
I fixed this by following the advice here:
Since I'm using stand alone Flash Builder 4.6, I bumped the settings in the FlashBuilder.confg file and so far have not had another crash.
I constantly had issues with this. I managed to run into the max for increasing the heap space. I was able to get beyond the limit by flagging the FlashBuilder.exe file to allow it to allocate to higher memory address ranges. I'm on a 64 bit machine, so the only limitation was the 32 bit FlashBuilder process. Anyways i was able to get from 1024m up to 1720m. Also note that FlashBuilder 4.7 Beta is out and it is a native 64 bit application, so you will get higher addressing there. I just found it to be too buggy for my every day development tasks. Also missing the Design view really hurts development. I hope they put that back in.
Here's more detail on how I got beyond the java heap ceiling.