realbasic-nug
[Top] [All Lists]

Re: Multiple app instances

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Multiple app instances
From: Norman Palardy <palardyn at shaw dot ca>
Date: Sun, 30 Jan 2005 12:44:12 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <41FCCE58 dot 6050807 at adinet dot com dot uy>

On Jan 30, 2005, at 5:08 AM, Mario Buchichio wrote:

Hi list

Could't find any info in this matter:
How do I avoid launching another instance of my app when opening a document from the desktop? My app is already running and when I double click a document to be opened by my app another instance is launched?

Is this on Windows ?

The Mac's default is to not ever do this anyways.

On Windows you use a mutex (see the Windows Functionality Library) to detect that a mutex already exists (basically a flag saying "I'm already running") and then hand it off to the other instance (that I'm not sure how you do ....)

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>