From owner-freebsd-java Tue Apr 11 1:19:45 2000 Delivered-To: freebsd-java@freebsd.org Received: from mail.rdc1.nsw.optushome.com.au (ha1.rdc1.nsw.optushome.com.au [203.164.2.50]) by hub.freebsd.org (Postfix) with ESMTP id F125937B681 for ; Tue, 11 Apr 2000 01:19:37 -0700 (PDT) (envelope-from davidh@optushome.com.au) Received: from optushome.com.au ([203.164.12.226]) by mail.rdc1.nsw.optushome.com.au (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20000411081936.NITY6821.mail.rdc1.nsw.optushome.com.au@optushome.com.au>; Tue, 11 Apr 2000 18:19:36 +1000 Message-ID: <38F2E035.A0FD5E23@optushome.com.au> Date: Tue, 11 Apr 2000 18:20:05 +1000 From: David Hobley X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lewis Cc: "freebsd-java@freebsd.org" Subject: Re: crash under 4.0 References: <200004102129.GAA72917@ares.trc.adelaide.edu.au> Content-Type: multipart/mixed; boundary="------------1DFDEA8FD92BD1CA7ED3B559" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------1DFDEA8FD92BD1CA7ED3B559 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Greg Lewis wrote: > > > When trying to run an app I have here which runs on Windows, > > and the Mac, I get the following crash: > > Anyone any ideas? > > Yes, but I need to confirm them. No problem, here is a test case I just constructed. Provide a splash.gif in the current directory. I can provide one which crashes if it something about this image (I tried several though). -- Cheers, david --------------1DFDEA8FD92BD1CA7ED3B559 Content-Type: text/plain; charset=us-ascii; name="test.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test.java" import java.awt.*; import java.awt.event.*; public class test extends Window { private static final String imagename = "splash.gif"; private Image picture; private int width, height; public test(Frame f) { super(f); Toolkit tk = Toolkit.getDefaultToolkit(); picture = loadPicture(tk); } private Image loadPicture(Toolkit tk) { MediaTracker tracker = new MediaTracker(this); Image result = tk.getImage(imagename); tracker.addImage(result, 0); try { tracker.waitForAll(); } catch (Exception e) { e.printStackTrace(); } width = result.getWidth(this); height = result.getHeight(this); return result; } static public void main(String[] args) { Frame f = new Frame(); new test(f); } } --------------1DFDEA8FD92BD1CA7ED3B559-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message