Report Builder export to PDF causes Access violation
Posted: Fri Sep 18, 2026 8:15 pm
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.
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.