Skip to main content



      Home
Home » Archived » BIRT » ReportEngine.destroy doesn't clear all links
ReportEngine.destroy doesn't clear all links [message #76736] Fri, 23 September 2005 08:55
Eclipse UserFriend
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?
Previous Topic:Start swt Shell widget from script
Next Topic:Memory leak in ReportEngine.destroy?
Goto Forum:
  


Current Time: Thu Jul 24 22:43:18 EDT 2025

Powered by FUDForum. Page generated in 0.06120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top