On Sun, 3 Feb 2002 04:02, Stephen McConnell wrote:
> Ok - rebuilt everything from scratch over JDK1.4RC - no change.
> After that I started digging. It turns out that the ShutdownHook in
> CLIMain is never being invoked. I've spent hours trying to sort this
> out but everything is turning out to be a dead-end. There are no
> application errors, everything is running nice then when I hit a
> Ctrl-C - none of usual shutdown messages ... instead its
> sudden-death.
>
> Any clues or suggestions will be *really* appreciated!!!
I went through the jdk1.4RC docs and couldn't find anything relevent. Could
you write a simple bit of java code to test if shutdown hooks work at all in
yoursetup or whether it is specific to phoenix. SOmething as simple as
public void main(String[] args)
Thread thread = new Thread()
{
public void run()
{
System.out.println( "It worked!" );
}
}
Runtime.getRuntime().addShutdownHook( thread );
wait();
}
and then ctrl-c it and see if that works?
--
Cheers,
Pete
-------------------------------------------------
We should take care not to make the intellect our
god; it has, of course, powerful muscles, but no
personality.
-------------------------------------------------
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>