SRL Archive - Help and Support

yeah another one of those errors......


rkroxpunk

2007-06-08 08:42:54

"[Runtime Error] : Exception: Access violation at address 006AA139 in module 'scar.exe'. Read of address 0000001C in line 390 in script"

"SetupSRL" I hear you all groan….but nope it's in there. I've had a few people try and figure it out to no prevail it happens every time I call FreeDTMs; I'm not sure if I can show you the whole script as my script partner hasn't come one yet so i'll just show u the DTM's and crap.

first off here are my vars for the DTM which I set globally.

Wine         :    array[1..3] of Integer;
i : Integer;

Here's the array of DTM's

Procedure LoadDTMs;
Begin
Wine[1] := DTMFromString('78DA636466646078CB8002F67A3B331801694' +
'6289F9105C8FA84AA66D9AC99A86A1831CD11111444510300AF19' +
'06CE');
Wine[2] := DTMFromString('78DA6364616460F8CC800296CD9AC9E006A41' +
'9A17C466620EB1D84CD0C155BEA688DAA860DC8FA80AA66F99CD9' +
'286A00E24E0898');
Wine[3] := DTMFromString('78DA636466646078CB8002F67A3B33B801694' +
'6289F9105A186192AB6C8D10A53CD3B5435336CCD51D530629A23' +
'222888A20600C8110899');
End;

and here's the FreeDTM's procedure that's giving me the error:

Procedure FreeDTMs;
Begin
For I:=1 To 3 Do
FreeDTM(Wine[i])
end;

hope it's not something too obvious and thx in advance for ur help

JAD

2007-06-08 10:42:41

From: rkroxpunk
"[Runtime Error] : Exception: Access violation at address 006AA139 in module 'scar.exe'. Read of address 0000001C in line 390 in script"

"SetupSRL" I hear you all groan….but nope it's in there. I've had a few people try and figure it out to no prevail it happens every time I call FreeDTMs; I'm not sure if I can show you the whole script as my script partner hasn't come one yet so i'll just show u the DTM's and crap.

first off here are my vars for the DTM which I set globally.

Wine         :    array[1..3] of Integer;
i : Integer;

Here's the array of DTM's

Procedure LoadDTMs;
Begin
Wine[1] := DTMFromString('78DA636466646078CB8002F67A3B331801694' +
'6289F9105C8FA84AA66D9AC99A86A1831CD11111444510300AF19' +
'06CE');
Wine[2] := DTMFromString('78DA6364616460F8CC800296CD9AC9E006A41' +
'9A17C466620EB1D84CD0C155BEA688DAA860DC8FA80AA66F99CD9' +
'286A00E24E0898');
Wine[3] := DTMFromString('78DA636466646078CB8002F67A3B33B801694' +
'6289F9105A186192AB6C8D10A53CD3B5435336CCD51D530629A23' +
'222888A20600C8110899');
End;

and here's the FreeDTM's procedure that's giving me the error:

Procedure FreeDTMs;
Begin
For I:=1 To 3 Do
FreeDTM(Wine[i])
end;

hope it's not something too obvious and thx in advance for ur help


Didn't I already fix your problem over msn?? :p You said I did.

rkroxpunk

2007-06-08 11:46:08

Ya I thought u did and then it turns out just as u left i got the error again :D

Jagex_Fagex

2007-06-23 10:01:20

backup scripts and re-install (used to work in 2.03) should be for divi as well

rkroxpunk

2007-06-27 09:00:21

hmm will try again, havn't tried in a lil while

NewToAutoing

2007-06-27 15:09:27

Well, whenever i encountered that problem with the freeing of a DTM or bitmap, i either hadn't loaded it before freeing it, or had already freed it at some point. Double check your script, and see if that's the case. Also note, that if i were to set another variable to a DTM such as WhichDTM := FishDTM or whatever, if i tried to do FreeDTM(WhichDTM); FreeDTM(FishDTM); i'd get an error on the second one. If i only did one, i would not get that error. Dunno if any of that info helps.

rkroxpunk

2007-06-28 06:09:37

From: NewToAutoing
Well, whenever i encountered that problem with the freeing of a DTM or bitmap, i either hadn't loaded it before freeing it, or had already freed it at some point. Double check your script, and see if that's the case. Also note, that if i were to set another variable to a DTM such as WhichDTM := FishDTM or whatever, if i tried to do FreeDTM(WhichDTM); FreeDTM(FishDTM); i'd get an error on the second one. If i only did one, i would not get that error. Dunno if any of that info helps.


I did more then double check :p and i checked my vars a gazillion times, not even JAD could figure it. probly a SCAR bug (i hope :S)