|
-
M.D.
flash memory limit
hello
just wondering if there is a flash memory limit, I seem to be having some weird problems on my bitmapData, I get a "ArgumentError: Error #2015: Invalid BitmapData." And I know that these bitmaps I'm creating are less than the max size of bitmapData, something like 2000px. No bitmap is greater than 1024px, but I'am creating a lot of them
and the only explanation I can see is flash not giving enough memory.
-
Yes we can
may be the case,may also be many other reasons though.
A while back i had one thing that´s actually a weird bug, check if its the case for you, my steps were:
1.png in lib with class export to be used for bitmapdata operations
2.using lib item for bitmapdata operations works fine
3. i add the png somewhere on the timeline in an mc
4.suddenly when i export the movie the bitmapdata operation throws the error you mentioned.
5.I remove the png from the timeline, export again-->codeside usage of that lib item for bitmapdata operations works fine again.
hm..
-
M.D.
thanks tom, I'll check it out
Got some library export problem again, I have to scrub my library to add items into memory, maybe thats the problem
-
Senior Member
I think I saw similar error when trying to build new bitmap and one of the variables for it was undefined:
mybmp = new Bitmap(new BitmapData(var1, var2));
-
M.D.
yeah, should mention its AS3, gotta declare all arguments.
anyway, closed flash, scrubbed the library and now the error doesn't show.
-
Yes we can
yeah,i noticed several more library related bugs with f9/as3 export before. weird ones.
-
....he's amazing!!!
As far as memory goes, I seem to remember that flash simply wont create a bitmapdata object if it runs out of memory. This is what happens if you bitmapCache an MC which goes over the size limit.
I'm guessing here, but presumably if you try to create a bitmapdata object in flash, and the memory doesn't have the space, it just throws an error when you try to access it.
-
Senior Member
A good test is to run your Flash movie through the Nintendo Wii browser. The Wii does not have alot of memory, and if your Flash movie requires a hell of alot, the Wii will report an "out of memory" error. ;-)
-
Yes we can
erm,i´d just open the task manager and see how much memory the flash player or the browser window with the flash content consumes.
With F9/AS3 you can also just check System.totalMemory
-
M.D.
well, I'm quite embarrassed to say this, but I am (was) a memory whore.
All fixed now.
Is it so wrong not to expect 1gb for flash these days? 
live and learn I suppose.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|