Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2264
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2012-11-15 10:16 -0800 |
| References | <b18cadc9-199f-4900-9f44-b25ec90acbd4@googlegroups.com> <k836e1$l25$1@dont-email.me> |
| Message-ID | <b571f064-315f-4fb5-81fc-b850984727d7@googlegroups.com> (permalink) |
| Subject | Re: Please help me kill this java thread..... code example |
| From | kedward777@gmail.com |
Thank you for your help! Sorry, I did have many more printouts to stdout, but stripped them to make it easier to read.... It is interesting that you said the System.exit should should down everything, now I am stumped...but here are my responses:
> 1) The shutdown() method is never called. You haven't shown
> us any of the arrangements you've made to have it called,
> so we can't tell whether they're correct (or even whether
> they exist). Try `System.out.println("Kilroy was here");'
> at the start of shutdown(), just to find out whether you
> do or do not ever get there.
> 2) A security manager forbids exit() from doing anything.
> If this happens a SecurityException will be thrown, and
> that might (or might not) be what stops the GUI. Perhaps
> your habit of catching and ignoring exceptions has blinded
> you to what's going on here.
I am sure shutdown is being called, because I can see that the GUI does shutdown/closes.
> 3) You're wrong: The worker thread does in fact stop. You've
> not explained why you think it's still running, so we can't
> tell whether your conclusion is correct.
I do not believe the worker thread is stopping because AFTER I click on the shutdown button, I then see the GUI shutdown/close, BUT I still see the netbeans JMV stdout window say the jvm is running still, AND I can perform ONE LAST scan, AND THEN I see the netbean jvm window close, and the scanner beam is then silent.
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Please help me kill this java thread..... code example kedward777@gmail.com - 2012-11-15 07:06 -0800
Re: Please help me kill this java thread..... code example kedward777@gmail.com - 2012-11-15 07:09 -0800
Re: Please help me kill this java thread..... code example Knute Johnson <nospam@knutejohnson.com> - 2012-11-15 08:42 -0800
Re: Please help me kill this java thread..... code example Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-15 11:49 -0500
Re: Please help me kill this java thread..... code example kedward777@gmail.com - 2012-11-15 10:16 -0800
Re: Please help me kill this java thread..... code example Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-15 13:33 -0500
Re: Please help me kill this java thread..... code example kedward777@gmail.com - 2012-11-15 10:56 -0800
Re: Please help me kill this java thread..... code example Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-11-15 14:21 -0500
Re: Please help me kill this java thread..... code example Roedy Green <see_website@mindprod.com.invalid> - 2012-11-15 13:37 -0800
csiph-web