What about just looking for your app in the openProcesses list called from
the freeware command line utility:

http://www.sysinternals.com/ntw2k/freeware/pslist.shtml

If your app is there, then shut yourself down.

Seems easy enough, unless I'm missing something.

-Chipp


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Trevor
> DeVore
> Sent: Thursday, January 29, 2004 4:04 PM
> To: How to use Revolution
> Subject: Re: multiple instances of standalone under Windows
>
>
> On Jan 29, 2004, at 2:26 PM, Richard Gaskin wrote:
>
> > Trevor DeVore wrote:
> >
> >> On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote:
> >>>
> >>> Polling a directory for a file, while suboptimal, is pretty fast and
> >>> would
> >>> seem to get the job done, no?
> >>
> >> Could you run into problems if your app crashed and wasn't able to
> >> clean up after itself?  The next time your app launched the file would
> >> still be there and your app would shut itself down.
> >
> > I had thathappen with a CGI.  I changed it so the file contains a
> > timestamp;
> > if more than 10 seconds old it deletes it and moves on.
> >
> > With desktop apps its more complicated, since the length of a session
> > is
> > less predictable.
> >
> > Could a local UDP or TCP call be used for that instead?
>
> It seems like this would be the best method available right now.
>
>
> --
> Trevor DeVore
> Blue Mango Multimedia
> [EMAIL PROTECTED]
>
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>


_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to