Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to control use of application
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01171748
Message ID:
01171750
Views:
6
This message has been marked as a message which has helped to the initial question of the thread.
>I want to limit the number of times my application can be launched on different workstations.
>
>How do you guys do it?

One technique I remember reading about way back is to have a table with the preset number of record in it (ie: your limited number of times to allow running -- ex: 10).

Then, whenever anybody logs in to you app, you can locate for RLOCK() of a record in that table at the beginning... if you can't get one, then the rest are all used... If a person quits out, that record will be released, so you only need to check for it up front, and never look back (unless you do an unlock all, or close that table by mistake).

Another option would be to store the users workstation info (ie: sys(0) ) in a field in a record that is blank. This way, you would know who's machine was in the system too.

Again, this was just one such approach I recalled
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform