Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record/file Locks...why do we still worry about them?
Message
From
30/07/2006 08:29:08
 
 
To
28/07/2006 11:39:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01141169
Message ID:
01141599
Views:
16
>Hell all
>
Hell right back at you :)

The only reason I can think of locking a file like that is if generating a new primary key, to ensure only one instance of your app gets the next key.


>Ok...new job, new application to learn...very old Fox code ported up through VFP8.
>
>All through the application we're doing explicit header locks - doing what ever to the table, then unlocking and flushing memory. Granted these are huge files (800 meg + ), but prior to this job I've never worried about file/header/record locks and let VFP handle that for me. Of course, I also went to file buffering/transaction handling along the way.
>
>Is there any reason WHY (other than old code)?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform