Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange locking problem
Message
From
03/05/2004 07:31:10
 
 
To
03/05/2004 03:00:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00900300
Message ID:
00900325
Views:
18
*IF* the 2 different applications in question both lock more than the log table to do their work, then you may be encountering a 'deadly embrace'.

A 'deadly embrace' happens when app#1 locks (record(s) of) fileA, then fileB and another app locks in fileB then FileA. A single app most likely always locks all records in the same sequence, thus no problem. But if some other app uses some other sequence then you stand a chance of a deadly embrace. App#1 has a lock on fileA and needs fileB but app#2 has fileB locked and needs fileA.

good luck


>Hi
>
>I have an application where several instances of a program may be running at the same time. They all write to the same log table. If another executable, which also has the log table open ,is also running on the computer at the same time, inserts a record into the log table are somehow stopped until I exit that program.
>
>The strange thing is that I can open the table via the VFP IDE and add/delete records as I like. I have put debug messageboxes in the program and they show that the table is not locked yet the program hangs at the insert command (The problem doesn't happen if I am using the debugger)
>
>Has anyone any idea why this might be occuring?
>
>Regards
>Geoff Scott
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform