Subreport with colums and AV
After upgrading from 6.03 to 7.0 (Delphi 5 Pro) an report with folloving
setup produces AV (Stack list included in the end of the message)
On main report's detail band there is only subreport of type pbChild.
This subreport has 2 columns, column witdh 95 (positions 10 and 105) and
column traversal Left to Right.
Exception class: EAccessViolation
Exception message: Access violation at address 00523024 in module
'PARK.exe'. Read of address 00000000
Exception address: 00523024
IsMainThread: True
Stack list, generated 04.11.2002 21:45:26
[00523024] ppHorizontalBandEngine.TppHorizontalBandEngine.StartColumn
[00523024] ppHorizontalBandEngine.TppHorizontalBandEngine.StartColumn
[0063180A] JclHookExcept.HookedExceptObjProc (Line 185, "JclHookExcept.pas")
[0040361D] System.@HandleAnyException
[00500065] ppPrnDev.TppPrinterDevice.DrawBMP
[00523024] ppHorizontalBandEngine.TppHorizontalBandEngine.StartColumn
[00522D1B] ppHorizontalBandEngine.TppHorizontalBandEngine.BeforePrint
[0055D1B3] ppClass.TppBand.GetObject
[00521A27] ppBandEngine.TppBandEngine.ResetObjects
[00521914] ppBandEngine.TppBandEngine.Generate
[005276CE] ppBands.TppDetailBand.Generate
[0051D9F9] ppEngine.TppEngine.GenerateBands
[0051D4D6] ppEngine.TppEngine.GeneratePage
[0051D6F4] ppEngine.TppEngine.RestorePage
[0051D29A] ppEngine.TppEngine.Generate
[0051D193] ppEngine.TppEngine.RequestPage
[0051A55E] ppReport.TppReport.RequestPage
[0051A5A7] ppReport.TppReport.RequestPage
[0057B777] ppDevice.TppPublisher.DoOnPageRequest
[0057B5B0] ppDevice.TppPublisher.Publish
[0057E7B3] ppProd.TppProducer.PublishReport
[0057E82F] ppProd.TppProducer.PrintToDevices
[0057E848] ppProd.TppProducer.PrintToDevices
[0051A44A] ppReport.TppReport.PrintToDevices
[0051A46B] ppReport.TppReport.PrintToDevices
[0057F0FF] ppProd.TppProducer.PreviewFormActivateEvent
[004FCE76] ppForms.TppForm.Activate
[00569391] ppPrvDlg.TppPrintPreview.Activate
[00569368] ppPrvDlg.TppPrintPreview.Activate
[0045574C] Forms.TCustomForm.CMActivate
[0043B74C] Controls.TControl.WndProc
[0043E297] Controls.TWinControl.WndProc
[00455C42] Forms.TCustomForm.CMShowingChanged
[00455D64] Forms.TCustomForm.CMShowingChanged
[00455D80] Forms.TCustomForm.CMShowingChanged
[0043B74C] Controls.TControl.WndProc
[0043E297] Controls.TWinControl.WndProc
[0043DE97] Controls.TWinControl.MainWndProc
[0043DEAE] Controls.TWinControl.MainWndProc
[00453337] Forms.TCustomForm.WndProc
[00413D41] Classes.TThreadList.UnlockList
[004249CD] Graphics.FreeMemoryContexts
[0043DE97] Controls.TWinControl.MainWndProc
[0043DEAE] Controls.TWinControl.MainWndProc
[00453337] Forms.TCustomForm.WndProc
[0043DE97] Controls.TWinControl.MainWndProc
[0043DEAF] Controls.TWinControl.MainWndProc
[00450872] Forms.StdWndProc
[00459041] Forms.TApplication.WndProc
[0045621E] Forms.TCustomForm.ShowModal
[004562B3] Forms.TCustomForm.ShowModal
[00456354] Forms.TCustomForm.ShowModal
[00456374] Forms.TCustomForm.ShowModal
[0057F384] ppProd.TppProducer.DoOnPreviewFormCreate
[0057E908] ppProd.TppProducer.PrintToScreen
[0057E721] ppProd.TppProducer.Print
[0057E740] ppProd.TppProducer.Print
[005199F6] ppReport.TppReport.Print
Any idea how to fix this?
TIA
ain
This discussion has been closed.
Comments
report so that we can debug it? Send it to support@digital-metaphors.com
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
runtime without data? This would make the problem easier to debug.
Debugging Delphi design time packages is not the easiest way to debug.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
was just curious if generating the first page with no event handlers and no
data would cause an AV. I have the project and will look at it today.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
When one column exists in a report and left to right traversal is turned on,
it causes an AV. It has been fixed for the next release.
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
the fix for it in RB 7 introduced a lone bug (which has been fixed and a
patch is available to all registered RB 7 users).
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
anyone else who may read the thread would know that there was a patch:)
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com