Log in

View Full Version : The following bitmaps were not freed



Mahatna
04-28-2012, 08:43 PM
Hey guys, while coding my script i have come accross this error, not to sure why

Exception: Range check error at line 21
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]

Script its self:

program new;
{$i srl/srl.simba}



procedure OpenSpellBook;
Var
X, Y:integer;
Begin
FindColor(X, Y, 3699093, 763, 204, 734, 174);
Mouse(X, Y, 5, 5, 1);
End;




Procedure ClickSpell;
Var
X, Y:integer;
Begin
FindColor(X, Y, 16499968, 587, 244, 615, 272);
Mouse(X, Y, 5, 5, 1);
End;

begin
SetupSRL;
OpenSpellBook;
ClickSpell;

end.


Line giving the error:
FindColor(X, Y, 16499968, 587, 244, 615, 272);

Thanks alot so close to my first script now!

masterBB
04-28-2012, 09:11 PM
Don't worry about the bitmap and dtm not freed error. That doesn't matter till you get more advanced at scripting. It is also not really an error, more like a note from simba that you forgot something.

I also couldn't replicate your error, it runs fine on mine laptop. However the smaller coordinates should be first at OpenSpellBook:

FindColor(X, Y, 3699093, 763, 204, 734, 174);

Should be:

FindColor(X, Y, 3699093, 734, 174, 763, 204);