Win Squeak needs to know about waking up! (Re: Laptop suspending and network drives)

Andreas Raab Andreas.Raab at gmx.de
Wed Sep 11 17:07:45 UTC 2002


Ned,

> What about the WM_POWERBROADCAST message (at least for non-WinCE 
> apps)?

You missed my point entirely or perhaps I didn't make it clear enough.
Of course there are ways of getting notified (there always are) in the
VM about a startup but what should the VM do?! It doesn't know enough
about the resources associated (like, for example, what files are open
and where the files come from) nor does it know about how to handle this
situation in the context of some application or other. E.g., even
assuming that we'd be enumerating the entire object memory to find all
the file handles, do we actually know which ones to reopen?! Do we know
how to handle failure situations?! Do we know if it's appropriate to
reopen a network connection or not?! At the VM level, we just don't. And
that's the problem. So the best I could eventually do is to pass some
notification up to the Squeak level. But even then it's not always clear
how to handle the situation. It would be much simpler if you could rely
on the OS to handle these things for you if it pulls away the carpet
under your feets ;-)

Cheers,
  - Andreas




More information about the Squeak-dev mailing list