Get this runtime error when I try to run my script with a form in.
Code:
[Runtime Error] : Exception: Cannot make a visible window modal.
I code alot in delphi so understand about modal forms and this is confuzling me.
SCAR Code:
procedure SafeInitialiseForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('InitialiseForm', v);
end;
procedure ShowFormModal;
begin
frmDesign.ShowModal;
end;
procedure SafeShowFormModal;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('ShowFormModal', v);
end;
procedure SetupForm;
begin
SafeInitialiseForm;
SafeShowFormModal;
end;
begin
SetupForm;
end.
No need to post the Initialise Form procedure or variables :P
Help would be greatly appreciated.