2009/5/30 Jérôme Laheurte <[email protected]>: > That's real strange. I have put some debug traces, and when I shutdown > the OS (XP SP2), onClose is not called. I haven't tried with a dirty > file though, but the lock remains. This is even more true on Mac/Linux > because the whole EVT_END_SESSION stuff is not supported...
I see that on Ubuntu, the process is killed with a SIGHUP when I log off. If I bind to that event, closing a clean file works and leaves it unlocked. When the file is dirty I see the "Save changes" dialog popup, but I'm not given the time to actually click, and the file is still locked when I log back in. So, if I can find a way to delay the log out to give the user the time to answer the dialog that would be nice. Otherwise we can just save the file and close it. Cheers, Frank
