Dear all:

i thank you for your advise, but the thing is that , i have a java3D applet
which makes multiple displays. if one display is currently showing and i try
to replace it with another new display, i get an error like "compiled/live
object, cannot change capability bits for PickTool", so i am trying to clean
the current display(i.e, the branchgroup and all its children) and free all
the memory or if possible , terminate the virtual machine before calling the
second display. even if i try to span a new browser after clicking a button
in the old browser, it still shows the same error. I am thinking which  is
the best way to do this.

i will appreciate any ideas,

thnaks,


Isaac

-----Original Message-----
From: Justin Couch
To: [EMAIL PROTECTED]
Sent: 1/17/03 3:12 AM
Subject: Re: [JAVA3D] System.exit(0)

Brobbey,Isaac (neuron) wrote:

> so i want to terminate the current session of the  java3D  before
loading
> another one.when i put an explicit call of System.exit(0) in the
applet
> program, i get an "accessControlException". do i need a special
permission
> from the runtime system to terminate the current session ?

Note that even if you did manage to call this, it's not going to achieve
the result you want. System.exit(0) will cause the entire browser to
shut down. I think you need to do a little more reading up on how
applets function to determine the correct answer. Remember, this is a
Java3D list, not a general Java coding list.


--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                               - Greg Bear, Slant
-------------------------------------------------------------------

========================================================================
===
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".

Reply via email to