..
...
> ..
> > I have written a program that times tasks, and it can quite easily be
[quoted text clipped - 8 lines]
>
> HTH
Thanks for you help, Andrew - that sounded like it should have done
the trick, and indeed, had I been running my program using java.exe I
suspect it would have, but a little bit of experimentation with
java/javaw seems to indicate that, for javaw.exe, the shutdown hook
does not get called, whereas for java.exe it does. :(
I'm going to try updating to the latest JVM, just in case it's a bug
that has been fixed. I'll post back my findings...
Will Atkinson - 02 Dec 2003 08:26 GMT
> > ..
> > > I have written a program that times tasks, and it can quite easily be
[quoted text clipped - 17 lines]
> I'm going to try updating to the latest JVM, just in case it's a bug
> that has been fixed. I'll post back my findings...
No luck - and a search through Sun's bug database reveals that this is
a longstanding issue with javaw.exe (java.exe does not exhibit this
problem, however, it does display an unsightly console window whilst
running on Windows).
I'll see whether I can find any decent workarounds for this problem.
:(