Results 1 to 6 of 6

Thread: AutoColor error....

  1. #1
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default AutoColor error....

    Hey I made an autocolor function using AutoColorAidv2 and every once in a long while, I get this error:
    SCAR Code:
    [Runtime Error] : Exception: Can't allocate the DIB handle in line 802 in script C:\Program Files\SCAR 3.15\Scripts\CheesyVEMSmart[Mine].scar

    Restarting SCAR usualy fixes it, but what causes that?
    Extinct.

    Formally known as Drags111.

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

    Default

    What are the lines 800-804?
    Administrator's Warning:


  3. #3
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im pretty sure it was these:

    arC := GetColors(arP);
    ClearSameIntegers(arC);
    arL := High(arC);
    Extinct.

    Formally known as Drags111.

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

    Default

    In that case I have no idea why it crashes =D

    Perhaps you got a memory leak somewhere in your script. I think there is a tutorial on what they are and how to get rid of them by Yakman.
    Administrator's Warning:


  5. #5
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use Try-Except to avoid runtime errors:
    SCAR Code:
    Try
      ....
    Except
      Writeln('There is a memory leak somewhere!');
    End;


  6. #6
    Join Date
    Oct 2006
    Posts
    1,211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alllllrighty i caught it again!

    SCAR Code:
    [Runtime Error] : Exception: Can't allocate the DIB handle in line 340 in script C:\Program Files\SCAR 3.15\Scripts\CheesyVEMSmart[Mine].scar

    And the line:
    SCAR Code:
    arC := GetColors(arP);

    EDIT!!: I did the try, except thing and I got the mem leaking writeln, then I got the error from wizzups? gas on these lines:

    C := GetColors(P);
    C2 := C;
    ClearSameIntegers(C);

    ROFL! :P
    Extinct.

    Formally known as Drags111.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do i use AutoColor?
    By Claymore in forum OSR Help
    Replies: 9
    Last Post: 07-07-2008, 11:21 AM
  2. AutoColor Help please
    By Adamb_135 in forum OSR Help
    Replies: 2
    Last Post: 05-14-2007, 01:42 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
  •