QuickReport.ExportToFilter throws "stack overflow" error when used in TWebModule
Posted
by M Schenkel
on Stack Overflow
See other posts from Stack Overflow
or by M Schenkel
Published on 2009-11-16T14:37:31Z
Indexed on
2010/04/05
18:03 UTC
Read the original article
Hit count: 1128
delphi
|quickreports
I have a web application using the TWebModule component. It runs as a module on Apache. The code below throws a "Stack Overflow" error on the ExportToFilter. The same exact code works fine from a Winforms Application and even a service for that matter. I have seen other discussions on this which indicate it has something to do with threading.
var
mFileName: String;
AExportFilter:;
begin
mFileName := 'c:\temp\calendar.pdf';
AExportFilter:=TQRPDFDocumentFilter.Create(mFileName);
try
WebSchdHistCalendarForm := TWebSchdHistCalendarForm.create(nil);
WebSchdHistCalendarForm.quickrep1.ShowProgress := False;
WebSchdHistCalendarForm.quickrep1.ExportToFilter(AExportFilter );
finally
AExportFilter.Free;
WebSchdHistCalendarForm.Free;
end;
© Stack Overflow or respective owner