Hi Rush,
"rush" <
[hidden email]> wrote in message
news:ak86d8$184g$
[hidden email]...
> Hi,
>
> I would like to monitor certain set of files that are used by my app, and
if
> they get changed by some external means load them again into the app.
>
> As far as I understod, general approach to those things is to create
change
> notification object with FindFirstChangeNotification call, and then
perform
> WaitForMultipleObjects call on that object.
>
> However as far as I understand this could block the smalltalk process
which
> I certanly do not want to do. So how should one approach this? Things
> comming to my mind are:
I needed to do this for an old project. The approach I took was to have a
class that forked a background process that blocked on the the #wait*
function, and then triggered an event in the main process using
SessionManager inputState queueDeferredAction: [ ... ]. I used a second
event handle that I could set myself, in order to shut down the process.
FWIW: Louis Sumberg and I did some work on the WindowsShell a couple of
months ago. It includes a couple of classes that listen for change
Notifications from the Shell as described at:
http://www.geocities.com/SiliconValley/4942/notify.htmlI have used this technique for a couple of projects since and it has worked
well. We should be releasing that code real soon now, but if you want to
take a look, email me and I will send it through.
Thanks,
Steve
==========
Steve Waring
[hidden email]
http://www.dolphinharbor.org/dh/harbor/steve.html