Kaydet (Commit) f66f04e6 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba24e_SRC680 (1.22.120); FILE MERGED

2007/12/19 12:28:44 oj 1.22.120.1: #i84339# handle refcount by releasing the objects as early as possible, gc is not alsways the best way to trust :-)
üst 7727cc86
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: CallReportWizard.java,v $ * $RCSfile: CallReportWizard.java,v $
* *
* $Revision: 1.22 $ * $Revision: 1.23 $
* *
* last change: $Author: vg $ $Date: 2006-04-07 12:50:10 $ * last change: $Author: vg $ $Date: 2008-01-29 08:42:57 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -119,7 +119,6 @@ public class CallReportWizard { ...@@ -119,7 +119,6 @@ public class CallReportWizard {
public void trigger(String sEvent){ public void trigger(String sEvent){
try{ try{
com.sun.star.frame.XComponentLoader xcomponentloader = (com.sun.star.frame.XComponentLoader) com.sun.star.uno.UnoRuntime.queryInterface(com.sun.star.frame.XComponentLoader.class, xmultiservicefactory.createInstance("com.sun.star.frame.Desktop"));
if (sEvent.compareTo("start") == 0) { if (sEvent.compareTo("start") == 0) {
if (bWizardstartedalready != true){ if (bWizardstartedalready != true){
ReportWizard CurReportWizard = new ReportWizard(xmultiservicefactory); ReportWizard CurReportWizard = new ReportWizard(xmultiservicefactory);
...@@ -131,6 +130,11 @@ public class CallReportWizard { ...@@ -131,6 +130,11 @@ public class CallReportWizard {
} }
bWizardstartedalready = false; bWizardstartedalready = false;
} }
else if (sEvent.compareTo("end") == 0) {
DocumentDefinition = null;
Document = null;
databaseproperties = null;
}
else if (sEvent.compareTo("fill") == 0){ else if (sEvent.compareTo("fill") == 0){
Dataimport CurDataimport = new Dataimport(xmultiservicefactory); Dataimport CurDataimport = new Dataimport(xmultiservicefactory);
XTextDocument xTextDocument = null; XTextDocument xTextDocument = null;
...@@ -149,7 +153,9 @@ public class CallReportWizard { ...@@ -149,7 +153,9 @@ public class CallReportWizard {
} }
catch( Exception exception ){ catch( Exception exception ){
System.err.println( exception ); System.err.println( exception );
}} }
System.gc();
}
/** The service name, that must be used to get an instance of this service. /** The service name, that must be used to get an instance of this service.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment