Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently May 18th, 2024, 9:52 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Desktop Application: How to Run a Single Instance
PostPosted: February 24th, 2016, 3:14 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
Dear Forum
I have created a desktop (exe) application
My question is how can I force a "single instance" to run in Windows at any one time.
Currently it is possible to run multiple instances of the same application.
Everytime the user clicks the exe a new window opens with an additional instance of the application.
I assume this kind of functionality is outside the scope of the Opus development environment.
Yours
Pakapaka


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Desktop Application: How to Run a Single Instance
PostPosted: February 25th, 2016, 12:16 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes, it's outside the scope of Opus itself - you'd need a third-party extension.

Basically, the process list you see when you run task manager in Windows would need to be accessed and then you would count the number of processes with a given name. If this count is greater than one, the last version of your application to run the check would simply exit.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Desktop Application: How to Run a Single Instance
PostPosted: February 25th, 2016, 3:28 pm 
Offline

Joined: May 15th, 2015, 8:30 am
Posts: 59
Opus: 9.0
OS: Win 7
System: Icore 7
thanks Mack


For this message pakapaka has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group