Access violation on Free ppreport ..
I have updated to RB6.02 and D5.
I use report explorer to design my reports and i save them in an IB
Database. Some of my reports use RAP a lot and i'm getting access violation
when i free this reports. I print 60-70 times one of this reports without
problem, but i get access violation when i free this reports. the RAP access
fields of pipelines and use variables. There is also ppDBChart in report.
I can't reproduce the problem because
the same report will be needed and therefore the database i'm using , etc.
I have some questions:
1. When i free the report, must the transaction be active and the
datasets.
2. How can i trace it to find the problem.
3: May be the error is this line. I have trace it, and after executing
this line i get the AV.
{ TraTppCustomTeeChartRTTI.GetPropValue }
class function TraTppCustomTeeChartRTTI.GetPropValue(aObject: TObject; const
aPropName: String; var aValue): Boolean;
begin
Result := True;
if (CompareText(aPropName, 'Chart') = 0) then
Integer(aValue) := Integer(TppCustomTeeChart(aObject).Chart)---> THIS
LINE OF CODE
The main problem is that i can load the report from database a lot of
times, and free it, but soon or later the access violation raises when i
free the report.
--
Jes?s Angel Garc?a Zarco
Cointec
This discussion has been closed.
Comments
but here it is again)
This isn't a currently known issue with RB. When are you freeing the
report? You may be able to change your library path to point to
..\RBuilder\Source instead of ..\RBuilder\Lib and the av may cause the
debugger to stop in the source method causing the problem. Does the problem
show up from one particular report or is it totally random?
The report doens't close the datasets for you when it finishes printing.
The report component's pipelines can open the datasets if they need to
before a report prints, but it will never close them.
I may be misunderstanding when you say "I can load the report from database
a lot of times, and free it." You shouldn't have to create and free a
TppReport component every time you load a template from the database. Create
one TppReport component when your app starts and then use that single
TppReport component to load and print templates from the database.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I have tried to recompile the packages. First i have tried to recompile
the package of TeeChart\Tee55x and i get the next error [Error]
ppChDPEdDlg.pas(62): Undeclared identifier: 'TFormTeeSeries'. I ha edited
the code and i have seen that in the header this lines ar commented.
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls, TeEngine, ExtCtrls,
TeeSourceEdit, Chart, ppDB, ppTypes{, TeeEdiSeri, TeeDBEdit};<===
if i uncomment this lines i can recompile the package.
After this, i have recompiled all the packages of RB, but when i try to
compile my application i get the error that raIDE was compiled with a
different version of.....
My be some problem with the sources of RB602.
don't release the source to RAP and hence, you can't change the interface
section of any unit if you want to recompile RB Enterprise because the RAP
units will need to be recompiled.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
| Rebuilding the RB packages is not recommended as it isn't easy to do. We
| don't release the source to RAP and hence, you can't change the interface
| section of any unit if you want to recompile RB Enterprise because the RAP
| units will need to be recompiled.
OK Jim, but i need to recompile the teechart package. why do i get this
error in source code ???
|
|
| Cheers,
|
| Jim Bennett
| Digital Metaphors
|
|
directly....
--
-
--
Tom Ollar
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
The access violation raises when i print a report that has a DBTeeChart.
I use rap to decide when to print or not the chart, If i print the report
with chart, and i try to print the report again and wit the chart i get an
access violation. If i print the report with chart, and in the second print
the chart is not printed, then i have no AV.
I used Teechart 501 and RB 556 without problem. Can the patch that you
have sent me solve the problem.
I have teechart 5 pro, but i can't see that the 5.2 release is out. Where
can i download it ?.
I need to solve this question because we are going to install our
application to a lot of customers and we need to solv this.
Regards,
--
Jes?s Angel Garc?a Zarco
Cointec
"Tom Ollar (Digital Metaphors)" escribi? en el
TppDPTeeChartControl.
--
Jes?s Angel Garc?a Zarco
Cointec
"Jesus Garcia Zarco(Cointec)" escribi? en el mensaje
news:8EAE82296ACCD311A039005004E0CAC00529D6@DMSERVER...
| Hello Tom:
|
| The access violation raises when i print a report that has a
DBTeeChart.
| I use rap to decide when to print or not the chart, If i print the report
| with chart, and i try to print the report again and wit the chart i get an
| access violation. If i print the report with chart, and in the second
print
| the chart is not printed, then i have no AV.
|
| I used Teechart 501 and RB 556 without problem. Can the patch that you
| have sent me solve the problem.
|
| I have teechart 5 pro, but i can't see that the 5.2 release is out. Where
| can i download it ?.
|
| I need to solve this question because we are going to install our
| application to a lot of customers and we need to solv this.
|
| Regards,
|
| --
| Jes?s Angel Garc?a Zarco
| Cointec
|
| "Tom Ollar (Digital Metaphors)" escribi? en el