FIX: Shared Table in DBC Remains Locked After Table Update (171668)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q171668 SYMPTOMS
When using optimistic table buffering on a table inside a database
container (DBC), a shared table remains locked after a table update that
occurs within a transaction. This situation prevents other users from
updating the table. The behavior occurs when the table is in a DBC, the
table update is within a transaction and the buffer mode is optimistic
table. The behavior does not happen when the table is free.
RESOLUTION
One resolution is to use free tables instead of tables within a database.
Another option is to check, within the transaction, whether the table is
locked (ISFLOCKED() returns True) and if the table is locked, use the
UNLOCK command to unlock the table.
A third resolution to perform a REPLACE on more than one record is to put
the REPLACE statement within a loop so that the scope of the REPLACE
statement affects only a single record.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This has been corrected in Visual FoxPro
6.0.
Modification Type: | Major | Last Reviewed: | 3/24/2000 |
---|
Keywords: | kbbug kbprb kbvfp600fix KB171668 |
---|
|