FIXED -
I had done this:
-----------------------------------------------------------------------------------
for temp_loop := 0 to TScript.instruction_count() do
begin
tmp_ins := TScript.get_instruction(temp_loop);
if tmp_ins <> nil then
with tmp_ins^ do
ComboBox2.Items.Add(get_id);
// MAIN SCRIPT CONSOLE INPUT
edit3.Text := '';
end;
initialization
{$I Unit1.lrs}
end.
-----------------------------------------------------------------------------------
when it should have been this:
-----------------------------------------------------------------------------------
for temp_loop := 0 to TScript.instruction_count() do
begin
tmp_ins := TScript.get_instruction(temp_loop);
if tmp_ins <> nil then
with tmp_ins^ do
ComboBox2.Items.Add(get_id);
end; // <-- cause of all my pain
// MAIN SCRIPT CONSOLE INPUT
edit3.Text := '';
end;
initialization
{$I Unit1.lrs}
end.
-----------------------------------------------------------------------------------
With a problem so simplistic and occurable, neither lazarus or fpc
could rule that an END was missing. Even with an 'initialization' inside
the block, neither knew what the hell to make of it. Hey, fpc + Lazarus for life,
but that was damned annoying to stumble upon, AND to realize what the
real problem was.