Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

File is in use by another user. File in use by another

$
0
0
File is in use by another user. File in use by another
Web Connection 5.0
File is in use by another user. File in use by another
Dec. 10, 2012
12:37 pm
3NX0R2M0YShow this entire thread in new window
Gratar Image based on email address
From:Eddie Caldwell
To:All
We are using westwind 5.63. We are using foxpro version 9 sp2 tables.
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


Viewing all articles
Browse latest Browse all 10393

Trending Articles