Skip navigation
guozanhua
Currently Being Moderated

RangeError: Error #1506: The specified range is invalid.

Sep 9, 2009 6:18 AM

RangeError: Error #1506: The specified range is invalid.

at cmodule.tiny::FSM_options_parse_command_line/work()
at <anonymous>()
at <anonymous>()
at FlashDisplay()

 

 

What are the causes of this error?

 

I used cygwin for compile my project.

 
Replies
  • Currently Being Moderated
    Sep 17, 2009 12:22 PM   in reply to guozanhua

    I had the same problem when trying to save two times the same image on flex, i was using jpegencoder.swc library,

    now i had changed to as3_jpeg_wrapper.swc and all works fine

    Also, i was creating my library on same method that do the save work, ive changed it to the initialization method

    Dont know if where the creation of the library can solve your issue, but try it

     

    Im using Flex SDK 3.3 and Flash 10.0.0.0 debugger version

     

    Hope i help you

     

    Sebastian Chiariello

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 19, 2009 8:58 AM   in reply to guozanhua

    Really i dont know, i didnt see the C code diferences, but there are diferent versions, there are 2 versions that use Alchemy to encode

    maybe this site can help http://www.websector.de/blog/2009/06/21/speed-up-jpeg-encoding-using-a lchemy/

     

    Sebastian

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2010 2:42 AM   in reply to sunmdq

    hello.

    I had this error : RangeError: Error #1506: The specified range is invalid.

    It stopped occuring when I put as3_jpeg_wrapper.swc initialization code into the static method that is fired only once. Maybe it could help.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 17, 2011 7:56 AM   in reply to guozanhua

    [SOLUTION] RangeError: Error #1506

     

    Switching to the new as3_jpeg_wrapper.swc and initilizing in creationComplete works to eliminate this error.

     

    - Brian

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 7, 2011 2:59 AM   in reply to guozanhua

    That error usually means that your app is trying to access memory that it should not be accessing.

     

    That happens usually because:

    * memory leaks

    * improper initialization

    * bad pointer asigment

    * going beyond the limit of an array/c string

    * you consumed all of the available heap/stack

     

    Also, it also shows up if you are targeting flash player 11.2, which is currently not supported.

     

    hope that helps.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points