KERNELBASE-Exception during print

interferenzinterferenz Dortmund
edited October 2012 in FastReport 4.0
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

Comments

  • edited 10:24PM
    Have you prepared the report before export?

    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?
  • interferenzinterferenz Dortmund
    edited 10:24PM
    Hello,

    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
  • interferenzinterferenz Dortmund
    edited 10:24PM
    Hello again!


    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.