realbasic-nug
[Top] [All Lists]

Re: Using Mutex

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Using Mutex
From: Joe Huber <joehuber at talasoft dot com>
Date: Sun, 30 Sep 2007 18:00:58 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8D344B96-66A8-4368-B87C-EFA9245AADC7 at classonesoftware dot com> <47003FC5 dot 4070000 at bellsouth dot net> <3C5A5B57-C7B1-493B-9125-C5781608C64A at classonesoftware dot com>
At 8:29 PM -0400 9/30/07, Roger Clary wrote:
>The situation I'm looking at is one in which the user installs my app 
>on a network drive and then launches the app concurrently from 
>multiple clients.
>  From my testing, this is possible on a Win platform.
>I want to prohibit this unless a site license has been purchased.
>I thought about installing a small hidden file upon launch, 
>preventing other launches if that file is present, then deleting the 
>file at exit.
>The problem, which quickly became apparent, is that if the app 
>crashes, the file is left in place preventing any launches.
>Suggestions gratefully welcomed.

If you're sure that all the clients would be on the same LAN, you 
might consider using either the AutoDiscover class or a UDP socket to 
a multicast group address directly. These would be a pretty quick and 
easy solution, but the detection would not likely span across a 
router, so it wouldn't be useful in larger networks where the users 
might be separated from each other or the server by one or more 
routers.

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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