SRL Archive - Help and Support

Access Violation is pissing me off


XcanadamanX

2007-11-02 19:23:39

I keep getting "[Runtime Error] : Exception: Access violation at address 00724393 in module 'scar.exe'…." on this line
if FindDtm(dtm, x, y, TB.x1, TB.y1, TB.x2, TB.y2) then

i dont know why ive tried activateclient infront of it.

heres the whole procedure…i mean function:
function CountItemDtm(dtm: Integer): Integer;
var
i, x, y: Integer;
TB: Tbox;
begin
GameTab(4);
for i := 1 to 28 do
begin
TB := InvBox(i);
if ExistsItem(i) then
if FindDtm(dtm, x, y, TB.x1, TB.y1, TB.x2, TB.y2) then
Inc(Result);
end;
end;

this works fine in al kharid but not in lumbridge.

King of Knives

2007-11-02 19:25:15

Did you remember to load the DTM to the memory… That would be a typical error. Mostly, people forget to call the loading-procedure, even though they made it.

-Knives

XcanadamanX

2007-11-02 19:27:01

lmfao….i feel soo retarded right now. Thanks a lot king of knives:p
yep that was the problem.

King of Knives

2007-11-02 19:35:08

Been there, solved that…

NP :D

-Knives