Thread Subject: Single instance application

Subject: Single instance application

From: Bruno Luong

Date: 14 Nov, 2007 20:30:13

Message: 1 of 2

Hello,

I would like to compile and deploy a MATLAB stand-alone
application under Windows that:

- can be run only with a single instance,
- this unique instance will be brought to the foreground
whenever my application is called (or its associated fileis
clicked by the user),
- Successive command-line inputs must be captured by the
(single) instance (so that appropriate action will be
performed).

How can I do this?

Many thanks,

Bruno Luong

 

Subject: Single instance application

From: Bruno Luong

Date: 17 Nov, 2007 11:19:26

Message: 2 of 2

"Bruno Luong" <brunoluong@yahoo.com> wrote in message

I have finally managed to create a SIA (single instance
application) of my GUI program. It's not very simple. I have
to write a wrapper program in Visual C that calls my MATLAB
function in the form of DLL-compiled. To check the number of
instances running, I use Mutex (Mutual exclusion) object; to
communicate arguments between two instances I have to use
the message sending and peaking mechanism, after creating a
so called "message-only" window.

Not sure it is clear, but I manage somehow to make it works.

Hopefully Mathworks will provide extra tools to do this in
the next version of the compiler.

Bruno

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
compiler Bruno Luong 14 Nov, 2007 15:30:31
deployement Bruno Luong 14 Nov, 2007 15:30:31
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com