You can only have one dessert.

crazy-street-signs DevZoo has created a sample on how to make your application single instance only.  DevZoo's example also includes some neat features like finding the current instance and activating it along with if the instance is in the system tray, to maximize it!

DevZoo uses what is known as a Mutex to pull off the single instance.  A mutex can span system wide to help provide resource management along with threading.  If you want to find out more, check out the wikipedia article on mutual exclusions.

Tag:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.