A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: flash memory limit

  1. #1
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139

    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.
    lather yourself up with soap - soap arcade

  2. #2
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    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..

  3. #3
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    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
    lather yourself up with soap - soap arcade

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    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));

  5. #5
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    yeah, should mention its AS3, gotta declare all arguments.

    anyway, closed flash, scrubbed the library and now the error doesn't show.
    lather yourself up with soap - soap arcade

  6. #6
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    yeah,i noticed several more library related bugs with f9/as3 export before. weird ones.

  7. #7
    ....he's amazing!!! lesli_felix's Avatar
    Join Date
    Nov 2000
    Location
    London UK
    Posts
    1,506
    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.

  8. #8
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    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. ;-)

  9. #9
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    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

  10. #10
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    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.
    lather yourself up with soap - soap arcade

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center