Hey,
i've a simple procedure which i use to print reports.
procedure TDataModuleReport.RepPrint(aRepName:String; aPrewiev:Boolean);
begin
OpenReport(aRepName);
with frReportMain do
begin
PrepareReport;
if aPrewiev then
ShowReport
else
PrintPreparedReport(pnPageNrString, 1);
end;
end;
under windows there is no problem.
under mac i can't call this procedure from an event (action or direct event call).
if i do i get an "RunError(100)" and the compiler jumps to "LCLProc" line 1582
Dump_Stack(DebugText^, get_frame);
if i call this procedure from the FormShow event, there is no problem.
Lazarus 0.30.2
FPC 2.4.4
greetings