JDeveloper 3.0 forms hogging processor
Date: 2000/02/18
Message-ID: <88jl69$n7$1_at_nnrp1.deja.com>#1/1
Hi,
I have developed an Infobus form using JDev3.0. I have a master frame
which is inherited from InfoFrame. The code in the
processWindowEvent for this frame is this.
protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSED) {
dispose();
super.processWindowEvent(e);
}
Now I make a form inheriting from this master, where I override this method. This is the code
protected void processWindowEvent(WindowEvent p0) {
if (p0.getID() == WindowEvent.WINDOW_CLOSED) {
System.out.println("closing the window now"); sessionTrade.revokeSession();
}
super.processWindowEvent(p0);
}
I'm using dispose in the master form, since I want to invoke multiple forms from a menu in one session.
The problem is once I open a form from the menu and close it, the java
vm hogs up the procesor (On NT, taskmanager shows processor usage as
90 - 98 %). After which I added the
System.out.println line in the overridden method. Surprisingly, this
part of the code is going in to an infinte loop, and the message goes
on getting printed.
Any ideas? I'd like to get a workaround/solution at the earliest.
TIA Gopal
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Feb 18 2000 - 00:00:00 CET