Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29870

Re: refusal to quit

From Mike Amling <mamling@chaff.us>
Newsgroups comp.lang.java.programmer
Subject Re: refusal to quit
Date 2014-08-29 12:50 -0500
Message-ID <c6bspsF39diU2@mid.individual.net> (permalink)
References <u1c10ap9r3l11teuhngbr5on958vu8h2vj@4ax.com>

Show all headers | View raw


On 8/29/14 11:56 AM, Roedy Green wrote:
> Sometimes programs simply refuse to quit after main has terminated.
>
> Sometimes the app is single-thread so I am baffled what it is waiting
> for.
>
> Practically I can make things work by adding a System.exit(0)
> as the last thing in main.
>
> However, I would like to understand what is going on.  Is there a way
> to shed some light on why a program won't quit?

You're sure it hasn't started some other Thread under the covers, e.g. a 
la Swing? I'd start out with a census of the running Threads.

--Mike Amling
QnV0IHRoZW4sIHdoYXQgZG8gSSBrbm93Pw==

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-08-29 09:56 -0700
  Re: refusal to quit Mike Amling <mamling@chaff.us> - 2014-08-29 12:50 -0500
    Re: refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-08-31 11:31 -0700
      Re: refusal to quit Josip Almasi <joe@vrspace.org> - 2014-09-01 17:14 +0200
        Re: refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-09-01 16:37 -0700
  Re: refusal to quit Josip Almasi <joe@vrspace.org> - 2014-08-29 22:16 +0200
    Re: refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-08-31 11:32 -0700
      Re: refusal to quit Josip Almasi <joe@vrspace.org> - 2014-09-01 17:20 +0200
  Re: refusal to quit Knute Johnson <eternal@knutejohnson.com> - 2014-08-29 17:25 -0700
  Re: refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-09-01 14:20 -0700
    Re: refusal to quit Roedy Green <see_website@mindprod.com.invalid> - 2014-09-01 14:34 -0700
    Re: refusal to quit Josip Almasi <joe@vrspace.org> - 2014-09-02 10:49 +0200
    Re: refusal to quit Arne Vajhøj <arne@vajhoej.dk> - 2014-09-07 22:04 -0400
  Re: refusal to quit Jan Burse <janburse@fastmail.fm> - 2014-09-02 12:17 +0200

csiph-web