SRL Archive - Bugs & Improvements S.M.A.R.T.

RunTime Error


Pyro

2007-10-30 19:51:34

Ok maybe im doing something wrong. (More then likely) But im having problems with my getcolor…. WEll or atleast its throwing that up..

[Runtime Error] : Exception: External exception 80000001 in line 38 in script C:\Program Files\SCAR 3.12\includes\srl/smart.scar

[Runtime Error] : Exception: Access violation at address 02C710AB in module 'Embedded SMART.dll'. Read of address 0E4D7178 in line 38 in script C:\Program Files\SCAR 3.12\includes\srl/smart.scar

BenLand100

2007-11-01 21:15:11

Looks like you tried to use SMART methods without calling SmartSetup in the script that uses them. Its important because accessing the jvm from an unregistered thread causes it to crash, and SmartSetup registers the thread that the script is running in.

Pyro

2007-11-01 22:30:32

? this SmartSetup(prefix, hiDetail, signed); has been called….

My loop looks like this…

SmartSetupex(11, false, true);
wait(10000)
while not(SmartReady) do Wait(100);
SetTargetDC(SmartGetDC);

with the ex function being..

{procedure SmartSetupEx(worldnumber: integer; hiDetail, signed: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SCSS\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup(prefix, hiDetail, signed);
end;}