Results 1 to 12 of 12

Thread: DIB Handle Error in GameTab.scar

  1. #1
    Join Date
    Dec 2009
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DIB Handle Error in GameTab.scar

    [Runtime Error] : Exception: Can't allocate the DIB handle in line 510 in script C:\Program Files\SCAR


    This refers to line 510 in GameTab.scar


    Can anyone shed any light on what is causing this?

    It's a script I've been working on for several days but it just popped up a few minutes ago, but I haven't changed anything in the script except for a few minor timing issues on mouse clicks, etc.

    Thanks in advance,

    JIM

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    If using SMART: Client>Reset Specified Window>
    If not using SMART: Client>Reset Specified Window> Re-Drag your crosshairs.

    If those fail, just restart SCAR

    Edit: Fixed. Had them switched!
    Last edited by YoHoJo; 01-16-2010 at 08:54 PM.

  3. #3
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    If using SMART: Client>Reset Specified Window> Re-Drag your crosshairs.
    If not using SMART: Client>Reset Specified Window>

    If those fail, just restart SCAR
    Shouldn't that be the other way around? o3o

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Timer View Post
    Shouldn't that be the other way around? o3o
    Its like, 2 -3 clicks, what's so bad about that? Do you know an easier way ?

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Its like, 2 -3 clicks, what's so bad about that? Do you know an easier way ?
    No, he meant

    "If using SMART: Client>Reset Specified Window> Re-Drag your crosshairs.
    If not using SMART: Client>Reset Specified Window>"

    is supposed to be

    "If not using SMART: Client>Reset Specified Window> Re-Drag your crosshairs.
    If using SMART: Client>Reset Specified Window>"

    because SMART already specifies the client

  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Ohhh! Rofl, sorry about that, he is correct. I'm sick, and have been sleeping too much recently. Sorry about that! What what I thinking!

  7. #7
    Join Date
    Dec 2009
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I still continue to have this problem on a sporadic basis. Usually it appears to result from TEXT.SCAR, is there any way to tell what is causing it? If it is something in my script I can rewrite it, but as of right now I don't know what is going on to cause it.

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    The error is most likely not in SRL, but in SCAR.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  9. #9
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    The error is most likely not in SRL, but in SCAR.
    Yes, because a simply restarting SCAR fixes the problem.

  10. #10
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I get this error all the time, 1/3 times I try to compile a script. I don't even have to restart SCAR, i just hit play again, and it works.
    (BTW, i thought 3.23 was suppose to fix this bug on a side note )
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  11. #11
    Join Date
    Dec 2009
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I can understand there is a problem, but the real question is WHY DOESN'T IT HAPPEN EVERY TIME we run the script? That's what is puzzling me. If there is some sort of error, it should happen every time you run that procedure. Yet everyone seems to agree it only happens about 20 to 30 percent of the time. So what could it be? Could it be a memory leak that only surfaces after you have stopped and started the script several times? We need to do some detective work and narrow down what it could be.

  12. #12
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by jimthesoundman View Post
    I can understand there is a problem, but the real question is WHY DOESN'T IT HAPPEN EVERY TIME we run the script? That's what is puzzling me. If there is some sort of error, it should happen every time you run that procedure. Yet everyone seems to agree it only happens about 20 to 30 percent of the time. So what could it be? Could it be a memory leak that only surfaces after you have stopped and started the script several times? We need to do some detective work and narrow down what it could be.
    Ha. Talk to Freddy and see if he'll enlighten you.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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