View Single Post
Old 08-19-07, 08:33 AM   #43
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

Quote:
Originally Posted by JScones
Sorry if I'm outta line here D_T.
It's kinda difficult to get "outta line" with me:rotfl: I've been married to the same woman for 30 years, I'm used to "suggested behavior". No worries, m8, you make a good point.

Seriously, that is the best way to approach it, I believe. .NET is probably much better at checking for only a single instance than I am. If I wrote the code, it would probably look a lot like this:

Code:
 
Someone clicked on me, it's time to go to work.
 
Ok, only supposed to be one of me running, let's check
 
Am I running?
 
Yes, I am.
 
Ooops, I'm running already, there's only supposed to be one of me
 
Sorry, I gotta quit running, Mr. User
 
See ya
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote