A bit more on this, here is the method that displays and removes the offending window:
public void viewRendering()
{
Build3D bos=new Build3D();
Canvas3D cv3d = bos.getCanvas3D();
jef=new JFrame("Your House");
Container con= jef.getContentPane();
con.setSize(400, 400);
con.add(cv3d);
con.setVisible(true);
jef.setSize(410, 410);
jef.addWindowFocusListener( new WindowAdapter()
{
public void windowLostFocus( WindowEvent e )
{
System.err.println("J3D Window lost focus!");
jef.setVisible(false);
System.err.println("J3D Window no longer visible!");
jef.dispose();
System.err.println("J3D Window disposed");
}
});
jef.show();
}
The System.err calls I added just now to test the system. The output I get is "J3D
Window Lost focus", then nothing. Taking elements out I have found that as soon as I
try to do anything to the JFrame containing the Canvas3D it stops working.
-ben
-----Original Message-----
From: Ben Moxon
Sent: 31 October 2002 10:54
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Silent fail on XP Vaio
I've written a little application that opens a simple Java3D viewer on request. It
works fine except when we tried running it on a new Sony Vaio fx805 running windows
XP. It displays the scene fine, although at a very low framerate, but when you try to
close that Java3D window it crashes. No error stack is returned it just stops
responding and has to be stopped from the Task Manager (or ctrl-c if run from the
console.)
Any idea what could be causing this?
Cheers,
-ben
=========================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".