Results 1 to 4 of 4

Thread: Access Violation?

  1. #1
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Access Violation?

    I read the stickied thread, but I'm totally confused by it.

    Thank you for using King Citadel by Elvis!
    SRL Compiled in 16 msec
    Current player: Elvisthepup
    King Citadel set to option: Loom!
    Error: Exception: Access violation at line 119
    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, SRL - NavBar Bitmap]




    I keep getting this, but my script compiles. I'm not sure how to get around this.


    edit: when I delete the SinceWeaved procedure:
    Code:
    function SinceWeaved: integer;
    begin
      MarkTime(SinceAction);
      Result:= TimeFromMark(SinceAction);
      if (SinceWeaved > 20000) then
      case(activity) of
      0: FailSafe('Loom not found!');
      end;
    end;
    and

    Code:
    SinceWeaved;
    from my main loop the error no longer appears.
    Last edited by Elvis; 12-02-2012 at 07:31 AM.

  2. #2
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    any ideas?

  3. #3
    Join Date
    May 2007
    Posts
    527
    Mentioned
    12 Post(s)
    Quoted
    109 Post(s)

    Default

    Quote Originally Posted by Elvis View Post
    Code:
    function SinceWeaved: integer;
    begin
      MarkTime(SinceAction);
      Result:= TimeFromMark(SinceAction);
      if (SinceWeaved > 20000) then
      case(activity) of
      0: FailSafe('Loom not found!');
      end;
    end;
    Don't you have there something like infinite recursive function? You define function SinceWeaved and you call itself inside it till the end of times.

  4. #4
    Join Date
    Nov 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What do you mean?

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
  •