KERNELBASE-Exception during print
interferenz
Dortmund
Hello,
i have a strange Problem with a report I have made in FastRep. 4.12.
When I preview the report of 392 pages, everythings works ok and I can print the report out of the preview.
But when I try to print directly the following GPF occurs:
(failed to insert image :-( )
https://dl.dropbox.com/u/21842502/fastrep_gpf.png
The addItem method of TfrxXMLItem results in a kernalbased exception.
I have no idea where to search, when I try to preview first everything works.
This is a mission critical showstopper, we are on the way to move to FastReport completly, no Plan B..
Thanks
Volker
i have a strange Problem with a report I have made in FastRep. 4.12.
When I preview the report of 392 pages, everythings works ok and I can print the report out of the preview.
But when I try to print directly the following GPF occurs:
(failed to insert image :-( )
https://dl.dropbox.com/u/21842502/fastrep_gpf.png
The addItem method of TfrxXMLItem results in a kernalbased exception.
I have no idea where to search, when I try to preview first everything works.
This is a mission critical showstopper, we are on the way to move to FastReport completly, no Plan B..
Thanks
Volker
Comments
If yes then:
Test whether this is related to XML only. Does the export to other formats work?
The AddItem procedure points to you using multi byte character sets. Test whether this is related to multi byte characters sets. Does it work when you restrict yourself to using ASCII codes only?
The error occurs during execution of 'prepareReport(true).'
The next action would be printing the report with printreport but the call is never reached cause of the GPF in prepareReport.
Previewing is ok and done with 'ShowReport(true)'.
There is no special xml handling in the report but there are a few pages of PascalScript invoked.
Here is a link to a non https-site.
http://www.pictureupload.de/originals/pict...fastrep_gpf.png
thanks in advance
Volker
I Have found the error of the report which forces the protection fault.
<!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto-->
procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
oldMaster1FontStyle:= masterdata1.font.Style;
outline.levelRoot; // *** This call was missing!!
outline.addItem('Invoices');
end;
<!--fontc--></span><!--/fontc-->
The use of addItem without initializing the outline with levelRoot obviously resulted in a dangled pointer.
thx
Volker