When making a safe procedure, let's just say I have something like this:
SCAR Code:
program example;
var
i : string;
procedure SomeProc(z : string);
begin
writeln(z);
end;
procedure NewThread(i : string);
var
V : TVariantArray;
begin
setarraylength(V, 1);
ThreadSafeCall('SomeProc', V);
end;
begin
i := 'This is a thread test';
NewThread(i);
end.
how can I make it put the i as parameter for the procedure thats called in the safe thread? And no, don't just mean the text but the entire variable
.
It would save me a lot of trouble if this were possible.