SRL Archive - Help and Support

Strange runtime error?


Cazax

2008-04-01 18:12:06

[Runtime Error] : Exception: Access violation at address 006D7B76 in module 'scar.exe'. Read of address 00000000 in line 373 in script

opened Amount.scar with the function function ItemCoordsDtm(area: String; dtm: Integer): TPointArray;

Method

2008-04-01 23:30:58

Did you not declare your DTM in that procedure or in your script? I believe that's a null pointer error, which means you're trying to access something that the script hasn't loaded into its memory yet.

Sir R. M8gic1an

2008-04-03 15:14:59

maybe declare the dtm into a var and then call the function? if there's a different answer i'm ionterested too, because i've been having this prob with bitmaps.

~RM

Cazax

2008-04-03 17:35:04

Im using a DTM from Mining.scar.

Method

2008-04-03 22:13:37

Mining.scar doesn't have any DTMs that are global in the file. You're probably trying to access something that's not loaded into the memory, like I said in my first post.