Log in

View Full Version : My Bitmaps were not freed!



ownedlikenoob
06-16-2010, 02:07 AM
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
06-16-2010, 02:09 AM
Don't worry - they're SRL bitmaps used in FindNormalRandoms.

Wanted
06-16-2010, 02:14 AM
procedure ScriptTerminate;
begin
FreeSRLBitmaps;
end;

Frement
06-16-2010, 02:55 AM
procedure ScriptTerminate;
begin
FreeSRLBitmaps;
end;

Wasn't there something like FreeSRL; also?

Wanted
06-16-2010, 02:58 AM
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
06-16-2010, 09:52 AM
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 :)