Jet locking (unlocking) problem 
Author Message
 Jet locking (unlocking) problem

Hello!

I am working with an mulituser application written in VB 4.0 (both 16
and 32 bit), with the Jet databaseengine.

I run with the optimistic locking scheme (The record is locked only in
the update process). After an update, the record (or page) don't seem
to be unlocked. I know that the unlocking is a background process, but
I also have included the DBEngine.Idle method after the update method.

Here is a sample of my code:
   tblMyTable.Edit
   'change some database fields
   tblMyTable.Update
   DBEngine.Idle dbFreeLocks

When other users access other records in the database meny seconds
after the update, the error message 3186 (the record is in use of
another user or something like that) occur.

Can someone help me? Feel  free to send me a mail!

Ulf Erik Forsbakk



Sun, 30 Aug 1998 03:00:00 GMT  
 Jet locking (unlocking) problem

Quote:
>Here is a sample of my code:
>   tblMyTable.Edit
>   'change some database fields
>   tblMyTable.Update
>   DBEngine.Idle dbFreeLocks

        Try using FREELOCKS

_
******************************************************************
NOTE: This software is currently in early alpha. If you notice any

Please do not report duplicates, as this is usually a manual resend
+------------------------------------------------------------+


|Physically in Church Hill, TN - Logically Not Sure          |
+------------------------------------------------------------+

Quote:
>>SQUID - The ultimate 32 bit offline databasing reader

**Special Compile: 3.000A (Alpha)


Tue, 01 Sep 1998 03:00:00 GMT  
 Jet locking (unlocking) problem

Quote:

>>Here is a sample of my code:
>>   tblMyTable.Edit
>>   'change some database fields
>>   tblMyTable.Update
>>   DBEngine.Idle dbFreeLocks
>    Try using FREELOCKS

Thanks!

Hasn't FREELOCKS and DBEngine.Idle dbFreeLocks the same functionality.
I think FREELOCKS is a Jet 2.0 thing. However my application seems to
work now. I have included a timer control in my main form, which
periodically runs DBEngine.Idle dbFreeLocks. I thought that a JET
table was locked only between the edit/addnew and update methods. It
seems to be locked during seeks and other operations as well. Is this
right?

Ulf Erik Forsbakk



Sat, 05 Sep 1998 03:00:00 GMT  
 Jet locking (unlocking) problem

Quote:
>...  I thought that a JET
>table was locked only between the edit/addnew and update methods. It
>seems to be locked during seeks and other operations as well. Is this
>right?

In VB4 16bit I found that 1 user (or program) doing a FIND operation
on a recordset prevents other users from doing ADDNEWs. Strangely, it
did not prevent other users from doing EDITs (even to the same record
as the one returned by the FIND).

Storing and reusing bookmarks did not prevent ADDNEWs.

Andy Stedman



Sat, 12 Sep 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. DAO lock problem, ADO seek problem against Jet db

2. Jet 3.0 vs Jet 3.5 table locking during queries

3. Help: Jet 2.0 multiuser locking problem

4. Jet Locking Problem?

5. MS Jet Locking problems (yet again!!!!)...>

6. When will locked record be unlocked ?

7. Lock / Unlock Application

8. HowTo Lock/Unlock records

9. lock/unlock subform

10. unlock files locked by others

11. How to Lock/Unlock record?

12. Help: Object is still locked after unlock

 

 
Powered by phpBB® Forum Software