Skip navigation
Home/Support/

Forums

1507 Views 4 Replies Latest reply: Sep 23, 2010 5:30 AM by focusppokus RSS
alfz_1978 Calculating status... 4 posts since
Oct 8, 2008
Currently Being Moderated

Nov 28, 2008 7:16 AM

Range Error 1506 when CLibInit.init()

I am getting this error when calling CLibInit init, even with the supplied stringecho sample.

RangeError: Error #1506:
at cmodule.SwcImageLib::FSM__start/work()[4852.achacks.as:5171]
at cmodule.SwcImageLib::CRunner/work()[4852.achacks.as:2565]
at cmodule.SwcImageLib::CLibInit/init()[4852.achacks.as:4597]

Any solution to this?
  • emcmanus Calculating status... 66 posts since
    Jul 31, 2005
    Currently Being Moderated
    2. Nov 28, 2008 6:48 PM (in response to alfz_1978)
    Re: Range Error 1506 when CLibInit.init()
    Regarding builds in FB: make sure you choose a link type of "external", not "merge into code", when linking your SWC.
  • boris.reitman Calculating status... 1 posts since
    Sep 21, 2010
    Currently Being Moderated
    3. Sep 21, 2010 10:12 AM (in response to alfz_1978)
    Re: Range Error 1506 when CLibInit.init()

    Hi,  I am getting still this problem. I am using the Shine MP3 Encoder library http://code.google.com/p/flash-kikko/

    I am getting the same error, but right away, depending on the state on of the program.  I am not initializing the CLibInit twice

    of the library that's crashing.

     

    In my project I use another library that is using Alchemy (standing wave 3) http://github.com/maxl0rd/standingwave3  It could be that the conflict occurs because of that.  I am loading both of these SWC libraries as RSLs.  All the rest of swc's that I use in my project (like Mate framework) are loaded as "merge into code".    I couldn't figure out how to make just "External" linking work.

     

    I'm not sure how to go about debugging this. Any suggestions ?

     

    How can I trace  (perhaps with printf()) what the C code is doing ?  Where does standard error and output from Alchemy C source go ?

    How can I send log from Alchemy C to Flash's trace() ?

     

    Her's the error I'm getting:

     

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

    at cmodule.shine::FSM_imalloc$/start()

    at cmodule.shine::FSM_pubrealloc/work()

    at Function/<anonymous>()

    at Function/<anonymous>()

    at fr.kikko.lab::ShineMP3Encoder/start()[/Users/kikko/work/tests/shineMP 3_alchemy/src/fr/kikko/lab/ShineMP3Encoder.as:41]

    at encoder/encodeClicked()[E:\dev2\playmytone\editor\src\encoder.mxml:12 3]

    at encoder/__encodeButton_click()[E:\dev2\playmytone\editor\src\encoder. mxml:170]

     

    Thank you,

    Boris Reitman

  • focusppokus Calculating status... 3 posts since
    Aug 19, 2010
    Currently Being Moderated
    4. Sep 23, 2010 5:30 AM (in response to boris.reitman)
    Re: Range Error 1506 when CLibInit.init()

    Dont init CLibInit twice. Insted use static value to hold it for reuse and refer to it. Worked for me.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points