Results 1 to 9 of 9

Thread: depressing access violation

  1. #1
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default depressing access violation

    Simba Code:
    function findvoidknight : boolean;
    var
      tp : TPoint;
      annpc : TNPCArray;
      i, x, y : integer;
    begin
      annpc := GetNPCs;
      annpc := SortNPCs(annpc);
      if length(annpc) < 1 then
      begin
        writeln('could not find void knight');
        exit;
      end;
      writeln(length(annpc)); //results 13
      for i := 0 to high(annpc) do //never gets past i = 0
      begin
        if not (annpc[i].Name = 'Void Knight') then //access violation
          continue;

    me nor #srl figured it out, so what am i doing wrong?
    Last edited by Awkwardsaw; 10-03-2010 at 08:39 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    find out the value of i when it gets the violation
    that way we can see if it is doing it correctly at least one

    ~shut
    it's 0
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  5. #5
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    can you find out what annpc[0].Name equals

    ~shut
    it suddenly started working, with no changes to it save for some writelns

    although i would still like to know how an access violation acured, so i might be able to fix it
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    it suddenly started working, with no changes to it save for some writelns

    although i would still like to know how an access violation acured, so i might be able to fix it
    no idea, but at least its working

    hope to see the pest controller soon

    ~shut

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

    Default

    Quote Originally Posted by Awkwardsaw View Post
    it suddenly started working, with no changes to it save for some writelns

    although i would still like to know how an access violation acured, so i might be able to fix it
    I fear that perhaps wrong hooks or other wrong input to SMART can cause this.



    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)

  8. #8
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    I fear that perhaps wrong hooks or other wrong input to SMART can cause this.
    alright, thanks
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  9. #9
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    I fear that perhaps wrong hooks or other wrong input to SMART can cause this.
    Hooks seem alright. But if the updater is wrong then that would be a problem on my end

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
  •