SRL Archive - Help and Support

SCAR 3.22 problem, doesn't occure with 3.21....


Pure1993

2009-09-06 15:48:23

Erm, is there a major difference between 3.21 and 3.22 using forms? because when I run my chicken killer on 3.21 it runs without a problem. If I run it with 3.22 though, it returns an access violation:

[Runtime Error] : Exception: Access violation at address 0078098A in module 'scar.exe'. Read of address 00000000 in line 1285 in script C:\SCAR Folder\ScarPrerelease\Scripts\Ultimate Chicken Killer\TheFox 1.3.scar

:confused:

procedure SafeForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('Form', v); // line 1285
end;


What do I have to change in order to get it to work on 3.22 as well? Thanks a lot in advance. :)

PS: I somehow feel this question has already been answered, but I couldn't find it searching the forums…. sorry if it has already been asked and answered somehwere… :(

ZephyrsFury

2009-09-06 17:38:13

Its mostly likely a problem somewhere else in the form.

Pure1993

2009-09-06 18:01:30

From: ZephyrsFury
Its mostly likely a problem somewhere else in the form.


It usually is when that line is called, but what irritates me is that it works with 3.21… :confused:

Daniel

2009-09-08 13:02:13

Instead of using ThreadSafeCall, try loading the form initialising procedure first then call:

<Form Name (e.g: frmDesign)>.Show;

And run the script, see how it goes (hopefully all you need to do now is just Show than ShowModal :D)