Results 1 to 2 of 2

Thread: error: Access violation error in line 305

  1. #1
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default error: Access violation error in line 305

    Hi, I'l try writing script for hunting in taverly. After login i use code
    :
    Simba Code:
    Procedure GetPoints();
      var
      x,y:integer;
      begin
      p1:=SPS_GetMyPos;
      x:=p1.x;
      y:=p1.y;
      p2.x:=x+20;
      p2.y:=y+20;
      p3.x:=x-20;
      p3.y:=y-20;
      end;
    and it give me error in SPS.simba:

    Simba Code:
    Error: Exception: Access violation at line 305
    The following DTMs were not freed: [SRL - Lamp bitmap, 1]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]
    In line 305 - i find code:
    Simba Code:
    FoundMatches := SPS_FindMapInMap(P.x, P.y, SPS_AreaMaps, SmallMap, SPS_Tolerance);
    How to fix it?
    Simba ver. 990.

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    This means you haven't called SPS_Setup before you try to use SPS_GetMyPos

Thread Information

Users Browsing this Thread

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

Posting Permissions

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