Access Violation in reports with variables after upgrading to 21.02.
Hi,
I've upgraded to Report Builder 21.02 from 11.08. We're using it with Delphi 7. I'm trying to open and convert some template (rtm) file but get an Access Violation in rbRAP217.bpl when calling ppReport1.Template.LoadFromFile.
The error occurs in reports using variables. If I remove the variable the report opens ok. Any help would be appreciated.
I've upgraded to Report Builder 21.02 from 11.08. We're using it with Delphi 7. I'm trying to open and convert some template (rtm) file but get an Access Violation in rbRAP217.bpl when calling ppReport1.Template.LoadFromFile.
The error occurs in reports using variables. If I remove the variable the report opens ok. Any help would be appreciated.
Comments
If possible, please send a template that causes this error to support@digital-metaphors.com and we'll take a look at what is happening.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I've sent a couple of templates in. Let me know if you need any other information.
Thanks
I'm able to open the provided templates using RB 21.02 with D7 and also with the latest, D11.
Perhaps you have a corrupt installation. Here's a link to an rbWiki article with detailed steps for cleaning up a corrupt installation. Give it try..
http://rbwiki.digital-metaphors.com/general/installation/cleaning-up-a-corrupt-install/
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I've done some more investigation. We're only experiencing this within our application. When I add a data field to a variable and compile it, we get the Access violation. It compiles ok if we use a function or add a report object. I haven't been able to replicate this in a test app to send you. It works fine in version 11.
The call stack and exception we're getting are below. Any ideas or help on how I can get to the bottom of this would be much appreciated.
Thanks
exception message : Access violation at address 03763B1A in module 'rbRAP217.bpl'. Read of address 2E29AFD0.
main thread ($4cd0):
03763b1a +000 rbRAP217.bpl
0377f22f +0c3 rbRAP217.bpl Raclass TraProgram.ReadStatement
0377f12e +0b6 rbRAP217.bpl Raclass TraProgram.ReadStatements
0377e637 +147 rbRAP217.bpl Raclass TraProgram.Build
0377e476 +1b2 rbRAP217.bpl Raclass TraProgram.Compile
037ebc15 +051 rbRIDE217.bpl Raedit TraCodeEditor.Compile
037ecc7e +07a rbRIDE217.bpl Raedit TraCodeEditorPopupMenu.MenuItemClickEvent
032a86ad +095 rbRTL217.bpl Pptb2item TppTBCustomItem.Click
032a859f +0b3 rbRTL217.bpl Pptb2item TppTBCustomItem.ClickWndProc
7687a56b +00b user32.dll DispatchMessageA
0138568b +083 vcl70.bpl Forms TApplication.ProcessMessage
013856c2 +00a vcl70.bpl Forms TApplication.HandleMessage
01381df5 +15d vcl70.bpl Forms TCustomForm.ShowModal
030d58cf +017 rbIDE217.bpl Ppcomponentdesigner TppComponentDesigner.ShowModal
03134567 +027 rbIDE217.bpl Ppendusr TppDesigner.ShowModal
0046a48a +08e PlanetEnterprise.exe Unit2 139 +10 TDataModule2.openReport
00476656 +026 PlanetEnterprise.exe Main 4582 +4 TMainForm.btn1Click
To research, I need an example I build and run in the debugger.
The call stack ends with TraProgramStatement. That does not provide a clue.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
We've found the AV is reported when using Mad Except and 'crash on buffer overrun' is turned on. I can send you a simple app build with Mad except if that would help.
Alpesh
To research, I need an example I can build and run in the debugger.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com