SingleInstanceChecker: Find window

Evan Charlton usenet at evancharlton.com
Sun Nov 11 21:12:40 PST 2007


Richard wrote:
> [Please do not mail me a copy of your followup]
> 
> steven at vaningelgem.be ("Steven Van Ingelgem") spake the secret code
> <5862ce3f0711111315g431b66cbiccdc9a1068b47894 at mail.gmail.com> thusly:
> 
>> But isn't there any generic way to do this?
> 
> In Windows, you generally identify another instance running by
> creating a named mutex.  If the named mutex already exists, then an
> instance of your application is already running.
> 
> I've not personally seen any X window system based applications that
> attempt to do this; you could probably do it through creating an ATOM
> though.
> 
> I don't know what you'd do on a Mac.

I believe the latest releases of Pidgin do this on all platforms. See
version 2.1.0 release notes: http://developer.pidgin.im/wiki/ChangeLog

Evan Charlton






More information about the wx-users mailing list