From d602d58d0fa307be96122e2fe4e0606015bd5d00 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:44:24 +0000 Subject: [PATCH] 2004/01/13 12:00:24 darcs-hash:20040130074424-2ba56-3a4e8c35bae2c031e3be5248b0814c04c68ca517.gz --- src/org/xwt/plat/Win32.java | 11 +---------- src/org/xwt/plat/X11.java | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/org/xwt/plat/Win32.java b/src/org/xwt/plat/Win32.java index b56a3ef..3140898 100644 --- a/src/org/xwt/plat/Win32.java +++ b/src/org/xwt/plat/Win32.java @@ -43,16 +43,7 @@ public class Win32 extends GCJ { public Win32() { } - public void init() { - String logfile = getTempPath() + "xwt-log.txt"; - try { - PrintStream ps = new PrintStream(new FileOutputStream(logfile)); - System.setOut(ps); - System.setErr(ps); - } catch (Throwable e) { - criticalAbort("Exception while attempting to redirect logging to " + logfile + " -- " + e); - } - + public void postInit() { new Thread() { public void run() { natInit(); } }.start(); messagePumpStarted.block(); } diff --git a/src/org/xwt/plat/X11.java b/src/org/xwt/plat/X11.java index a6ce65b..a770994 100644 --- a/src/org/xwt/plat/X11.java +++ b/src/org/xwt/plat/X11.java @@ -46,7 +46,7 @@ public class X11 extends POSIX { private native void natInit(); public X11() { } - public void init() { + public void postInit() { natInit(); (new Thread() { public void run() { eventThread(); } }).start(); } -- 1.7.10.4