|
From: Philipp K. <phi...@gm...> - 2008-06-24 10:10:17
|
Hello all,
i am implementing a WrapperListener with this code as in the websites example:
public void controlEvent(final int event) {
if (WrapperManager.isControlledByNativeWrapper()) {
// The Wrapper will take care of this event
} else {
// We are not being controlled by the Wrapper, so
// handle the event ourselves.
if (event == WrapperManager.WRAPPER_CTRL_C_EVENT
|| event == WrapperManager.WRAPPER_CTRL_CLOSE_EVENT
|| event == WrapperManager.WRAPPER_CTRL_SHUTDOWN_EVENT) {
WrapperManager.stop(0);
}
}
}
However, the Wrapper does not take care of the
WRAPPER_CTRL_CLOSE_EVENT when I want to close the console. Instead it
does nothing and Windows thinks the application hangs. However I can
close the app by pressing CTRL-C.
Any idea whats going on?
Thanks,
Phil
--
The Dude Abides!
|