SRL Archive - Help and Support

Does anyone know why I get this runtime error?


rostaryms

2008-03-11 14:30:14

Procedure RunCheck;
Begin
if (TimeFromMark(SetRunMark) < (CheckRunTime * 60000)) then Exit;
if FindBitmapToleranceIn(x, y, FullEnergy, 738, 103, 763, 119, 15) then
begin
SetRun(true);
Wait(random(500));
end;
MarkTime(SetRunMark);
End;

It is the FindBitMapToleranceIn line..

[Runtime Error] : Exception: Access violation at address 00726778 in module 'scar.exe'. Read of address 00000030 in line 603 in script C:\Program Files\SCAR 3.14\My Scripts\ExperimentFighter.scar

thanks in advance, rosta

R0b0t1

2008-03-11 21:55:55

Yes, you seem to have run out of virtual memory.


Because you ARE using a bitmap…

Bobarkinator

2008-03-11 22:13:13

Or you haven't declared the bitmap in the script yet. If you put it in a procedure such as LoadBitmaps then put that in your Main loop

rostaryms

2008-03-11 23:35:56

Hmmm, it is declared, just not in the main loop. I'll try that. Thanks guys.