Re: How to determine if an instance of your program is already running?

From: Miki Tebeka (miki.tebeka_at_zoran.com)
Date: 12/28/03

  • Next message: Jarek Zgoda: "Re: How to determine if an instance of your program is already running?"
    Date: 27 Dec 2003 23:53:43 -0800
    
    

    Hello Mike,

    You can have your program create a known directory (which IIRC an
    atomic operation). When a new instance tries to create it, there will
    be an exception.

    Make sure that when you application is closing to remove this
    directory.

    HTH.
    Miki


  • Next message: Jarek Zgoda: "Re: How to determine if an instance of your program is already running?"

    Relevant Pages

    • Re: WTF patents
      ... IIRC, allegedly perpetual motion machines are an exception to that ...
      (sci.electronics.design)
    • Re: Compound expression and order of evaluation
      ... proper short-circuiting. ... With, iirc, the exception of the ** exponentiation operator new in 8.5 ... that is the _only_ exception. ...
      (comp.lang.tcl)
    • Re: OT: Room for improvement?
      ... IIRC the decision not to run was made ... It is the exception rather than the rule for a VP not to seek the top ... tons of negative political baggage. ...
      (rec.sport.tennis)
    • Re: How to determine if an instance of your program is already running?
      ... Miki Tebeka pisze: ... > atomic operation). ... > be an exception. ...
      (comp.lang.python)
    • Re: duplicate code
      ... bool rethrow = ExceptionPolicy.HandleException(ex, "Log Only ... Policy"); if ... wenn eine Exception gefangen wird (was in der Methode nicht der ... IIRC wird der Kompiler hier auch einen Fehler. ...
      (microsoft.public.de.german.entwickler.dotnet.csharp)