multiple instances of standalone under Windows

2004-01-29 Thread Chris Sheffield
Does anyone have a way to check if another instance of a standalone is already running, and if so close the one that was just opened? I have an application running under Windows and need to keep the user from opening multiple instances of it. Is there a way to do this? I've tried using 'if there

RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
Hi Chris, Not sure if this will help, but you might check out: http://www.sysinternals.com/ntw2k/utilities.shtml there are a number of process utilities there. We've had some discussions on this list before, and the short answer is "not easily." You can do things like write a file when you open

Re: multiple instances of standalone under Windows

2004-01-29 Thread Richard Gaskin
Chipp Walters wrote: > We've had some discussions on this list before, and the short answer is "not > easily." You can do things like write a file when you open and delete it > when you close --then check to see if it is there when it launches again, > but this has obvious problems. Polling a dir

Re: multiple instances of standalone under Windows

2004-01-29 Thread Trevor DeVore
On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote: Chipp Walters wrote: We've had some discussions on this list before, and the short answer is "not easily." You can do things like write a file when you open and delete it when you close --then check to see if it is there when it launches again

Re: multiple instances of standalone under Windows

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 01:45 PM, Chris Sheffield wrote: Does anyone have a way to check if another instance of a standalone is already running, and if so close the one that was just opened? Try 'accept' on some obscure port. If it fails, assume that another app is running. (Immediate

Re: multiple instances of standalone under Windows

2004-01-29 Thread Richard Gaskin
Trevor DeVore wrote: > On Jan 29, 2004, at 2:08 PM, Richard Gaskin wrote: > >> Chipp Walters wrote: >> >>> We've had some discussions on this list before, and the short answer >>> is "not >>> easily." You can do things like write a file when you open and delete >>> it >>> when you close --then c

RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
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, Richar

Re: multiple instances of standalone under Windows

2004-01-29 Thread Trevor DeVore
On Jan 29, 2004, at 4:01 PM, Chipp Walters wrote: 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 m

Re: multiple instances of standalone under Windows

2004-01-29 Thread Dar Scott
On Thursday, January 29, 2004, at 02:19 PM, Dar Scott wrote: Does anyone have a way to check if another instance of a standalone is already running, and if so close the one that was just opened? Try 'accept' on some obscure port. If it fails, assume that another app is running. (Immediately clo

RE: multiple instances of standalone under Windows

2004-01-29 Thread Chipp Walters
Funny it works fine from here. Try again? -Chipp > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Trevor > DeVore > Sent: Thursday, January 29, 2004 6:21 PM > To: How to use Revolution > Subject: Re: multiple instances of sta

Re: multiple instances of standalone under Windows

2004-01-30 Thread Jan Schenkel
--- Chris Sheffield <[EMAIL PROTECTED]> wrote: > Does anyone have a way to check if another instance > of a standalone is > already running, and if so close the one that was > just opened? I have an > application running under Windows and need to keep > the user from opening > multiple instances o

RE: multiple instances of standalone under Windows

2004-01-30 Thread Chris Sheffield
01 PM To: How to use Revolution Subject: RE: multiple instances of standalone under Windows 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

RE: multiple instances of standalone under Windows

2004-01-30 Thread Chris Sheffield
pment Read Naturally -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dar Scott Sent: Thursday, January 29, 2004 2:19 PM To: How to use Revolution Subject: Re: multiple instances of standalone under Windows On Thursday, January 29, 2004, at 01:45 PM, C

Re: multiple instances of standalone under Windows

2004-01-30 Thread Trevor DeVore
On Jan 29, 2004, at 7:18 PM, Chipp Walters wrote: Funny it works fine from here. Try again? Weird, in Safari I get the custom page not found error. If I use Explorer then it works fine. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-

Re: multiple instances of standalone under Windows

2004-01-30 Thread Dar Scott
On Friday, January 30, 2004, at 09:13 AM, Chris Sheffield wrote: Thanks for the suggestions, Dar, but I think maybe not understand the 'accept' thing. It sounds like it should work, but I'm not quite getting it. You don't by chance have a code sample do you? How will I know if the accept comm

Re: multiple instances of standalone under Windows

2004-01-30 Thread Dar Scott
On Friday, January 30, 2004, at 10:25 AM, Dar Scott wrote: constant lockPort = "46144" I think one of the weaknesses of the 'accept' method for checking for multiple apps is the potential of collisions here. The other problem is that this will not work if tcp/ip networking is not set up for som