Log in

View Full Version : Exception: Range check error at line 551



Wetish
08-15-2012, 05:21 AM
When I run this short script I get this error. It also happens when I run other scripts in a browser.

program new;
{$i srl/srl.simba}
{$i sps/sps.simba}
Var
myPath:TPointArray;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_OTHER,['bdsc']);//SPS Areas
myPath := [Point(144, 261), Point(153, 261), Point(165, 264), Point(173, 265), Point(185, 265), Point(196, 268), Point(206, 272), Point(217, 276), Point(227, 274), Point(238, 273), Point(249, 273), Point(253, 277), Point(255, 285), Point(256, 293), Point(253, 299), Point(241, 308), Point(229, 312), Point(213, 314), Point(198, 319), Point(186, 324), Point(186, 329), Point(184, 338), Point(176, 344)];
SPS_WalkPath(myPath);
end.

http://puu.sh/VsJd

Debug Box:


New window: 2501908
Compiled successfully in 312 ms.
SRL Compiled in 16 msec
Successfully executed.
New window: 2764052
Compiled successfully in 328 ms.
SRL Compiled in 0 msec
Exception: Range check error at line 551
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, SRL - NavBar Bitmap]


Any ideas?

CephaXz
08-15-2012, 05:41 AM
Because its opened in your path creator. Close it.

Wetish
08-15-2012, 05:51 AM
Because its opened in your path creator. Close it.

Damn. How did you know that?

CephaXz
08-15-2012, 05:53 AM
Because this happened to me too lol.