multiple instances of standalone under Windows

Dar Scott dsc at swcp.com
Thu Jan 29 19:42:39 EST 2004


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 close any connections in the call back, 
> should any be made.)  I'd try UDP first.  If you need to listen to a 
> port anyway, you are set.

Though this is a little weird, it is multi-platform.

Dar

****************************************
     Dar Scott Consulting
     http://www.swcp.com/dsc/
     Programming Services
****************************************



More information about the use-livecode mailing list