Occasionally, we get the error, File in use by another.
This is coming from line 24 of wwbusiness::save()
The line of code reads: Append Blank
I have been looking at various fixes. My first thought was to put it inside a 'try..catch' and repeat then wait a second and repeat the command.
But then I found the post below and thought it might be a more elegant solution just to turn the tablevalidate off right before the command and then back on again afterwards.
Please let me know what would be best.
Thanks for your wonderful product,
Eddie
Thanks to"Juergen Wondzinski", "wOOdy"! wOOdy begin------Try your code with a SETTABLEVALIDATETO 0.With the Default options, VFP8 tries tovalidate the DBF-Headerfor corruption.For that it has to briefely lock the header, which conflicts with your FLOCK(). wOOdy end--------TABLEVALIDATE has four level oftable integrity check 0 - None 1 - Validate record countwhen opening a table: the table (.dbf) fileheader is locked during validation 2 - Validate record countwhen appending or inserting records and writing them to disk 3 - Validate as Level 1 + Level 2TABLEVALIDATE by default is setto 3