I have been adding locking support to my program by locking and
unlocking ranges of bytes as needed. I have noticed that programs
like Microsoft Access create an additional file that seems to
provide info about locks that are in place.
Is there a good reason why these separate type of locking files
are used? I assume they store info about which records are
locked, when they were locked and by whom so maybe it is this
additional info that the lock file provides that makes it worthwhile.
I guess if you just lock a range of bytes then you won't know who
locked them and when.
What would happen if there was a power outage or some other
interruption that caused the program to not to delete this lock
file? When you reboot the file will still be there with the
locks - the locks would never go away unless you manually
delete the file.
If anyone can point me in a good direction on this I would appreciate
it - or if they have some good links to additional info.
Thanks,
------------------
Paul Squires
www.PlanetSquires.com
mailto:[email protected]
[email protected]
</A>
unlocking ranges of bytes as needed. I have noticed that programs
like Microsoft Access create an additional file that seems to
provide info about locks that are in place.
Is there a good reason why these separate type of locking files
are used? I assume they store info about which records are
locked, when they were locked and by whom so maybe it is this
additional info that the lock file provides that makes it worthwhile.
I guess if you just lock a range of bytes then you won't know who
locked them and when.
What would happen if there was a power outage or some other
interruption that caused the program to not to delete this lock
file? When you reboot the file will still be there with the
locks - the locks would never go away unless you manually
delete the file.
If anyone can point me in a good direction on this I would appreciate
it - or if they have some good links to additional info.
Thanks,
------------------
Paul Squires
www.PlanetSquires.com
mailto:[email protected]
[email protected]
</A>
Comment