Article View: borland.public.jbuilder.java.language
Article #412Java program not closing under XP SP2 (but under W2000)
From: Oliver
Date: Thu, 04 Aug 2005 15:59
Date: Thu, 04 Aug 2005 15:59
39 lines
2200 bytes
2200 bytes
Hello,
i have a Java program (1.5) which is closing down properly on my
Windows 2000 (SP4) PC (closing down properly: process is
terminated after the main frame has been closed. I use
system.exit(0)), but on my Windows XP SP2 PC the same program
under the same circumstances (a system.exit(0) is issued too)
remains in memory as process (the main frame has been closed
and is not visible). I have tried a dispose() before my
system.exit(0), but no change.
protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
if (canClose()) {
dbConn.shutDown(); // Datenbankconnection schliessen
final WindowEvent winEvent = e;
Runnable shutDownRunnable = new Runnable() {
public void run() {
if (TiamoRemoteInterface.shutdown()) {
Main.super.processWindowEvent(winEvent);
setVisible(false);
dispose();
System.exit(0);
}
}
};
Thread shutDownThread = new Thread(shutDownRunnable);
shutDownThread.setName("RemoteShutDownThread");
shutDownThread.start();
}
}
}
any hints?
thanks
Oliver
Technical Details
Message-ID:
<42f23b7f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,c4aecde4ab7af5b7,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Oliver" <o.maas@nospam_metrohm.de> Sender: "Oliver" <o.maas@nospam_metrohm.de> Reply-To: "Oliver" <o.maas@nospam_metrohm.de> Subject: Java program not closing under XP SP2 (but under W2000) Newsgroups: borland.public.jbuilder.java.language X-User-Info: 81.90.37.2 X-Forwarded-For: 192.168.103.10, 127.0.0.1 NNTP-Posting-Host: 207.105.83.66 Message-ID: <42f23b7f$1@newsgroups.borland.com> Date: 4 Aug 2005 08:59:59 -0700 X-Trace: newsgroups.borland.com 1123171199 207.105.83.66 (4 Aug 2005 08:59:59 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail