Results 1 to 10 of 10

Thread: [Runtime] DIB -- Yes, hopefully my last problem!

  1. #1
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Runtime] DIB -- Yes, hopefully my last problem!

    Fixed using Starblaster100's solution

    --Original post

    My script is running very well. I have my script set up for area detection.

    Unfortunately when I ran my test my test script in lumbridge, I get:

    [Runtime Error] : Exception: Can't allocate the DIB handle in line 1202 in script C:\Program Files\SCAR 3.06\Scripts\Th-Hidden-.scar

    So, do I have any help here?

    I also would appreciate to know:
    1: What this error is and means
    2: Any common fixes

    Thanks in advance

    -Krabby Krap

  2. #2
    Join Date
    May 2006
    Location
    GMU
    Posts
    1,101
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What does line 1202 say?
    Hey lady, I need a yank! Ha ha, dislocation.

  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes. Please post the script and then we shall help.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    '236328497F1390F5D2DF040CBDAE6040915E62DC805F2F7E1 388D' +
    Part of a bitmap! Strange, it's the 10th bitmap. I'll restart SCAR and see if it has the correct line.

  5. #5
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Think you can post the whole script ?
    Administrator's Warning:


  6. #6
    Join Date
    Feb 2006
    Location
    London, England
    Posts
    2,045
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    You keep loading a bitmap / DTM without freeing it and so the memory allocated to SCAR has run out. Make sure that when you run a script, you create bitmaps when needed, and free them when they are not. If you are constantly using a bitmap then only load it once at the beginning of your main loop.
    SRL Wiki | SRL Rules | SRL Stats
    Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!


    Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!


  7. #7
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Are you sure that you freed all your bitmaps after using them?


    EDIT: =/ Beaten by 2 minutes
    Interested in C# and Electrical Engineering? This might interest you.

  8. #8
    Join Date
    Feb 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Starblaster100 View Post
    You keep loading a bitmap / DTM without freeing it and so the memory allocated to SCAR has run out. Make sure that when you run a script, you create bitmaps when needed, and free them when they are not. If you are constantly using a bitmap then only load it once at the beginning of your main loop.
    Wow, Starblaster100! Thank you! My problem was the bitmaps. I was careful enough to use FreeBitmap();, but my problem was that I initialized 52 huge bitmaps in the beginning of the function, which crashed loading bitmap 10, but still frees them in the end. Even worse, there are even more bitmaps in the other functions!

    So, to fix this, I only load the bitmap when needed, and still keep my FreeBitmap(); functions. Now it works!

    Thanks again, Starblaster100!

  9. #9
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Well yea, Starblaster is a 1337 SCAR User/Error Fixer.

    He's probably encountered all these problems while making his Stress Miner.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  10. #10
    Join Date
    Feb 2006
    Location
    London, England
    Posts
    2,045
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem dude,

    Yup, i've encountered them all!
    SRL Wiki | SRL Rules | SRL Stats
    Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!


    Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. RunTime Error Problem
    By Java Lava in forum OSR Help
    Replies: 4
    Last Post: 12-13-2007, 12:54 AM
  2. Runtime error problem
    By Rora in forum OSR Help
    Replies: 2
    Last Post: 12-06-2007, 05:56 PM

Posting Permissions

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