Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointer changes when other user inserts!
Message
 
To
20/06/2003 10:56:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00802079
Message ID:
00802468
Views:
30
>>>>>>I have the following problem. (Buffering is 3 – Optimistic row buffering is on)
>>>>>>Sue enters a new record and locks it. Bill enters a new record and attempts also to RLOCK() but the lock fails.
>>>>>>I suspend Sue's process and browse the table. The record she inserted has moved up by one and she is now sitting on Bill's new record and has it locked.
>>>>>>I can reproduce this. Can anyone help with this?
>>>>>It'd be interesting to see a reproducing code.
>>>>>Why do you need an insert followed by a lock ? You say it's row buffered. It wouldn't go on to disk till you leave the record or explicitly tableupdate.
>>>>>You might be more comfortable with buffering 5.
>>>>>Cetin
>>>>To reproduce this all I need to do is to have 2 users try to insert at the same time.
>>>>I introduced locking because users were complaining that occasionally when 2 of them wereinserting at the same time that one will suddenly start editing the other's record.
>>>>In the above, I changed to table locking but get the same error, the only difference is that I do not see Bill's record in Sue's session.
>>>Table locking ? I meant buffering.
>>>Cetin
>>Sorry, I meant table buffering.
>Sorry then. I don't know of a way to get another buffered table's (in buffer) record unless I can switch to its workarea. Without being able to reproduce no idea.

George, I _have_ seen this before, and managed to trim it down to a very simple repro. Unfortunately, I can't figure out what that was. Can you post code that will show the behavior? It's been ticking me off since VFP3.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform