When trying to export some reports that use DBRichView, they crash every time with "Invalid pointer operation" error and some access violations after that. Tried with Delphi 11.3/RB 22.0 and Delphi 12.0/RB 22.3 both with TRichView 24.2.
When I noticed that only reports with DBRichView crash, I downgraded TRichView, version by version, down to 23.0.1, when it started working again.
Here's the stack trace, just after the error:
:75a159a4 KERNELBASE.RaiseException + 0x64
System.TObject.FreeInstance
System.ErrorAt(2,$B88F55)
System.Error(reInvalidPtr)
System.TObject.FreeInstance
System._ClassDestroy(???)
ppPDFCanvas.TppPDFCanvas.Destroy
System.TObject.Free
ppPDFRenderer.TppPDFRenderer.Destroy
ppPDFRendererGeneric.TppPDFRendererGeneric.Destroy
System.TObject.Free
ppPDFRendererManager.TppPDFRendererManager.Destroy
System.TObject.Free
ppPDFDevice.TppPDFDevice.Destroy
System.TObject.Free
ppProd.TppProducer.FinalizePrintToPrinter
ppProd.TppProducer.FinalizeReport
ppProd.TppProducer.PrintToDevices
ppReport.TppReport.PrintToDevices
ppProd.TppProducer.CancelDialogShowModalEvent($7886DC0)
ppForms.TppCustomCancelDialog.TimerEvent($BCA1500)
Vcl.ExtCtrls.TTimer.Timer
Vcl.ExtCtrls.TTimer.WndProc(???)
System.Classes.StdWndProc(657786,275,1,0)
:74ab93d3 ; C:\Windows\SysWOW64\USER32.dll
:74aa857d ; C:\Windows\SysWOW64\USER32.dll
:74aa754a ; C:\Windows\SysWOW64\USER32.dll
:74aa70b0 USER32.DispatchMessageW + 0x10
Vcl.Forms.TApplication.ProcessMessage(???)
Thank you in advance.
Report Builder export to PDF causes Access violation
-
Sergey Tkachenko
- Site Admin
- Posts: 18250
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Report Builder export to PDF causes Access violation
If you use ReportBuilder 22.x, open <TRichView>\ThirdParty\ReportBuilder\Source\Include\RVRB.inc, and remove the line
This line is necessary for ReportBuilder 23 and newer.
Does it help?
Code: Select all
{$DEFINE REPORTBUILDER23}Does it help?
Re: Report Builder export to PDF causes Access violation
That solved the problem.
Thank you.
Thank you.