ReportEngine.destroy doesn't clear all links [message #76736] |
Fri, 23 September 2005 08:55 |
Eclipse User |
|
|
|
Hi!
I work on WEB application that uses BIRT 1.0.0 as built-in engine.
ReportEngine object is creating and destroying in static method. Besides,
I pass to EngineConfig.addScriptableJavaObject method some objects for
late using via scripting engine. Unfortunately, BIRT ReportEngine.destroy
does not clear all links to ReportEngine and all it's links stucked in
memory.
To release memory after report generation I use such workaround:
try {
EngineConfig config = new EngineConfig();
config.addScriptableJavaObject(...);
...
} finally {
if (engine != null) {
engine.destroy();
}
ScriptUtil.getTailoredScript("", null);
Context.getCurrentContext().setWrapFactory(new WrapFactory());
}
Can you please clarify the issue. Why engine.destroy() doesn't release
BIRT's wrap factory class and static links between ReportEngine and
ScriptUtils?
Besides, is my workaround correct for WEB application? If it is, can you
fix this leak in new releases?
|
|
|
Powered by
FUDForum. Page generated in 0.06120 seconds