Results 1 to 4 of 4

Thread: The Following DTM's Were not freed: [2] ERROR

  1. #1
    Join Date
    May 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default The Following DTM's Were not freed: [2] ERROR

    So I am making my first script and am using DTM's to walk to the bank, but as soons as it starts the WalkToBank Procedure it exectues and I get the error message:

    The Following DTM's Were not freed: [2]

    Any help, greatly appreciated!

    Simba Code:
    Procedure WalkToBank;

    var
      AreaOne,x,y : Integer;

    begin
      FindNormalRandoms
      If (InvFull) then
        begin
        AreaOne := DTMFromString('mggAAAHicY2NgYNjAysCwGIh3AfEeVgh/IRAbMDIwaACxGhAbArElEFsAcUC0JoNPuDqDV7gsg1KUCENArDyDo7cSw38G7IARB4YAALWuCtA=');
        if FindDTM(AreaOne,x, y, 1, 1, 200, 200) then
          begin
            Mouse(x, y, 0, 0, true);
            writeln('Currently: Walking To Bank - Phase 1!');
          end;
        end;
    end;
    Last edited by ABC!; 06-09-2012 at 10:43 AM.
    BOT TILL YOU DROP!

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    u r just using DTM, DDTM is slightly more complex.

    U mean it compiles fine but script is terminated as soon as it reaches the procedure? There is no TerminateScript command in this procedure so if ur script is terminated it must be from previous procedures.

    You didnt free ur DTM at the end of the procedure so u will get the error when script is terminated.

  3. #3
    Join Date
    May 2012
    Posts
    190
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    u r just using DTM, DDTM is slightly more complex.

    U mean it compiles fine but script is terminated as soon as it reaches the procedure? There is no TerminateScript command in this procedure so if ur script is terminated it must be from previous procedures.

    You didnt free ur DTM at the end of the procedure so u will get the error when script is terminated.
    How do I free the DTM?

    And yes it compiles fine,runs everything okay, then when it goes to start walking it executes.
    BOT TILL YOU DROP!

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    What do u mean it "executes"? Terminates?
    Add FreeDTM(AreaOne); to after ur "if () then begin... end" statement.

    Also u shd probably use FindDTMRotated for walking unless the compass is perfectly north all the while.

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
  •