Does QuitSystem event handling work?
<joachim.geidel <at> onlinehome.de>
2006-11-01 12:02:33 GMT
Hi all,
since VW 7.1, VW contains support for responding to QuitSystem events when Windows shuts down. This is
described in the release notes of VW 7.2.1. I am trying to use this feature, such that the application asks
the user if pending changes should be saved, and to disconnect any database connections. However, it
doesn't seem to work, and so far I didn't find out whether I it's my fault or a problem with the feature itself.
Here's what I did to test the feature, following the description in the release notes:
- In a subclass of InputState, there's a method #send:eventQuitSystem: which writes a timestamp to a log
file and calls 'super send: window eventQuitSystem: event '.
- An instance of the InputState subclass is installed, such that 'InputState default' answers this instance.
- In a workspace, I evaluated
ObjectMemory registerObject: true withEngineFor: 'acceptQuitEvents'
and saved the image.
- When I shut down Windows or end my Windows session, VisualWorks quits, but it does not create any log file.
As I said, I have no idea what's wrong.
Joachim Geidel