Access Violation
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. 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.
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
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. 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.
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
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