SRL Archive - Help

My Bitmaps were not freed!


ownedlikenoob

2010-06-15 22:07:12


Error: Out Of Range at line 396
The following DTMs were not freed: [SRL - Lamp bitmap]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\SRL\Logs\SRL Log 15-06-10 0.txt] has not been freed in the script, freeing it now.

What am I doing wrong?

Main Loop:

begin
Smart_Members := MEMBERS;
Smart_Server := WORLD;
Smart_Signed := SIGNED;
SetupSRL;
LoginPlayer;
Wait(2000+random(2000));
Mouse(574, 16,1,1,true);
Repeat
Fighting;
AntiBann;
FindNonInventoryRandoms;
Until(False);
end.

Cazax

2010-06-15 22:09:49

Don't worry - they're SRL bitmaps used in FindNormalRandoms.

Wanted

2010-06-15 22:14:29

procedure ScriptTerminate;
begin
FreeSRLBitmaps;
end;

Frement

2010-06-15 22:55:54

From: IceFire908
procedure ScriptTerminate;
begin
FreeSRLBitmaps;
end;


Wasn't there something like FreeSRL; also?

Wanted

2010-06-15 22:58:13

From: Frement
Wasn't there something like FreeSRL; also?


If there was than it would be in Globals.scar, and I do not see anything like it

Anyways, @ownedlikeanoob, all you have to do is make a procedure called ScriptTerminate and it will automatically callitself when the script is stopped/terminated.

BraK

2010-06-16 05:52:26

From: IceFire908
If there was than it would be in Globals.scar, and I do not see anything like it

Anyways, @ownedlikeanoob, all you have to do is make a procedure called ScriptTerminate and it will automatically callitself when the script is stopped/terminated.




{*******************************************************************************
procedure FreeSRL;
by: SRL Dev Team
Description: Tries to free all the variables it allocated during runtime.
*******************************************************************************}
procedure FreeSRL;
begin
FreeSRLBitmaps;
FreeSRLFonts;
FreeSRLLog;
end;


it's in srl.scar :)