[haXe] Detecting multiple instances of a haxe application.

Nicolas Cannasse ncannasse at motion-twin.com
Thu Apr 26 00:49:44 CEST 2007


> Is there a mechanism to detect multiple running instances of a haxe
> (neko) application?  We'd like to provide information if the user is
> already running our program and they launch it again.

One possibility is to create a temporary file somewhere, but if the app
crashes or the process is terminated by the user you will not be able to
erase it.

There are other possibilities like opening a localconnection (names
should be unique I think) or a socket. Or you will have to write C code
to list the running processes and/or create a named pipe (on windows).

Nicolas



More information about the Haxe mailing list