can't launch firefox, no matter restarting computer or reinstalling firefox.

"stefan.saye" <[email protected]> Fri, 26 Mar 2010 19:21:29 +0800
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <[email protected]>
 

 

he *,

i have develop a firefox extension , i am using liveconnect let javascript
communicate with java,

it's my java code :

 

public class javaCode{

 

        private int i;

 

        public javaCode() {

                this.i = 0;

 

        }

 

        public void testCount() {

                while (true) {

                        

                        String msg = "Call Java Method Count :" + this.i;

 

                }

        }

}

 

my javascript :

 

function test() {

                         var myClass = loader.loadClass('com.example.
javaCodeclass);  

 var myObj = myClass.newInstance();  

 var binval = myObj. testCount ();

                }

 

when i install the extension into my firefox , i get a problem that is when
restart firefox after i instll it  ,I can't open the firefox  ,but i find
the firefox process is still running 

the problem is looks like the java is using "while(true)" , so it's won't
stop ,

but how to solve the problem using js or java ??

any idea ?

 

cheers,