Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 24, 2019 12:17 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Check If Apllication Already Runs
PostPosted: Wed Aug 23, 2006 10:42 pm 
Offline

Joined: Thu Mar 23, 2006 12:07 am
Posts: 263
How can I check if my application already runs, to avoid the user start it a second time?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 23, 2006 11:03 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
Search the forums, you'll run across this question many times. The answer is, use a Mutex.

http://ramblings.aaronballman.com/?p=431
http://ramblings.aaronballman.com/?p=432


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 1:15 am 
Offline

Joined: Sun Nov 13, 2005 5:48 pm
Posts: 1073
Location: Gone man...gone.
Aaron Ballman wrote:
Search the forums, you'll run across this question many times. The answer is, use a Mutex.

http://ramblings.aaronballman.com/?p=431
http://ramblings.aaronballman.com/?p=432


Aaron, is there any chance we'll see a 'convenience class' that basically does the same thing as VB 6's App.PreviousInstance someday?

Using the Mutex class isn't that hard once you do it a couple of times, but a lot of people from the VB 6 world are used to the quick and easy App.PreviousInstance.

_________________
God bless and thanks to my friends and fellow RB'ers for the good times!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 1:20 am 
Offline

Joined: Thu Mar 23, 2006 12:07 am
Posts: 263
Thank you Aaron that works great.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Aug 24, 2006 7:42 am 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
Corbin D wrote:
Aaron, is there any chance we'll see a 'convenience class' that basically does the same thing as VB 6's App.PreviousInstance someday?


Certainly, assuming it gets requested (which I don't think I've ever seen before). It's a reasonable request.


Top
 Profile  
Reply with quote  
 Post subject: Re: Check If Apllication Already Runs
PostPosted: Mon Oct 08, 2012 1:35 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
blogs no longer exist...

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: Check If Apllication Already Runs
PostPosted: Mon Oct 08, 2012 3:35 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
Most of this is collected in Aarons book
http://great-white-software.com/rblibra ... cts_id=111

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: Check If Apllication Already Runs
PostPosted: Mon Oct 08, 2012 5:42 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
Thanks norm...as part the RSDS library I wrote a small tool to go through all the forums picking out code, downloads, and links... This was one reported dead by the app and a copy from the "way back machine" has been substituted. Im attempting to match resources to their creators with location (urls) or creators' contact information....attempting to archive "everything" REALbasic is quite tedious ;-p...and so much of it has disappeared through the course of time..thus why I started the RSDS preservation project and code cloud :-)

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


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

All times are UTC - 5 hours


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

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