>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only