Results 1 to 4 of 4

Thread: [Runtime Error] : Exception: Access violation at address 006A80F5

  1. #1
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [Runtime Error] : Exception: Access violation at address 006A80F5

    if (A = 8) then


    is the line i get the error at


    this is the whole procedure:
    SCAR Code:
    procedure CrafterSoft;
    var
    A: Integer;
    begin
      repeat
        A := A + 1;
        UseItem(1);
        Wait(300+random(200));
        UseItem(28);
        Wait(1500+random(200));
      until (FindBitmap(Xer, x, y) or (A = 8));
      if (A = 8) then
      begin
        NextPlayer(False);
      end;
      FreeBitmap(Xer);
    end;

  2. #2
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It actually doesn't have anything to do with the "if (a = 8) then" Alot of times, the actual error occurs in the line before the error-line scar gives you.

    In this case, I would check over your bitmap to make sure it is still in memory. If you only declare the bitmap at the beginning of the script, then it will run this procedure fine once, then it will free the bitmap. The second time it tries to run the procedure, it won't remember what the bitmap Xer is. I would just recommend doing the Xer := BitmapToString(' ') part at the beginning of this procedure, and then you don't have to worry.

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Do you know what addresses are? There how you address memory in your computer. Like a variable in scar takes up an address.

    Check your Vars and stuff, because its that or SCAR.




    BTW: I just noticed the nurse bear under my name... WTF is it for?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    Nov 2006
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea JAD helped me fix it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 01-04-2009, 07:48 PM
  2. Replies: 4
    Last Post: 02-25-2008, 05:18 PM
  3. Replies: 7
    Last Post: 10-27-2007, 12:29 PM
  4. Replies: 2
    Last Post: 10-11-2007, 05:08 PM
  5. Replies: 2
    Last Post: 04-07-2007, 03:43 AM

Posting Permissions

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