Access Violation
Error: Access violation at line 363
Hello,
When i try the code below i receive this error on the commande (TRSMinimap.setAngle(MM_DIRECTION_NORTH);)
Error
Error: Access violation at line 363
Execution failed.
The following bitmaps were not freed: [Minimap Mask]
File[C:\Simba\Includes\SRL-6/logs/SRL log (04-09-15 at 11.18.12 AM).txt] has not been freed in the script, freeing it now.
CODE
program new;
{$DEFINE SMART} // comment this line out if you don't want to use SMART
{$i srl-6/srl.simba}
{$i sps/lib/sps-rs3.simba}
var
p: TPoint;
begin
clearDebug();
smartEnableDrawing := true;
SetUpSRL();
print('debut du programme');
players.setup(playerNames,playerFile);
if (lobby.findPlayButton(p)) then
begin
print('trouver');
mouse(p,mouse_left,MOUSE_HUMAN);
end else
print('trouver');
wait(20000);
TRSMinimap.setAngle(MM_DIRECTION_NORTH);
TRSMainScreen.setAngle(MS_ANGLE_HIGH);
end.