Re: Second instance

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you're using Win32Lib then you can use setAppName() which will return non-zero if the application name is already in use (i.e. running).

    if setAppName("Super Database") != 0 then 
        warnErr("Application is already running") 
    end if 

Another option would be to search the list of active processes running on the system for a PID matching your own executable path.

Unfortunately, Euphoria currently lacks a cross-platform library for working with enumerating and controlling processes. sad

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu