Solved

Deadlock detected. Deadlock (argh!)

Posted on 1998-03-21
1
491 Views
Last Modified: 2008-02-01
I have a huge problem, I have some (as in more than one) applications each application is multithreaded and they may not even run on the same machine, these apps access the same interbase database and the same tables, this created dreadlocks (not really, but BDE thinks so) so BDE throws exceptions all over the place, I have gated all my Tquery.execsql and Tquery.open  calls with try...except blocks where I handle any exceptions, but to no avail, I cannot find the exact call that gennerates the exception.

My question is this: how do I catch the deadlock-exceptions and what calls cause them?
0
Comment
Question by:ffrand
1 Comment
 
LVL 1

Accepted Solution

by:
RJENKINS earned 340 total points
ID: 1360671
Try this in the BDE Admin in the Interbase driver config

From SQL Links Tech Support - www.borland.com
---
The Interbase SQL Links driver can be set to use "soft commit"
instead of "hard commit" by setting the Interbase DRIVER FLAGS to
either 4096 or 4068 (please see the READLINK.TXT fro details.)  
The current (BDE 4.0) drawback to this (at least until the next
version of the Interbase SQL Links driver comes out [v4.01]) is
that NO WAIT is used with NO RECORD VERSION which can result in
immediate deadlocks.By adding 512 to the DRIVER FLAGS param you are setting the
driver default back to a REPEATABLE READ (RECORD VERSION)
isolation level which helps to avoid a "deadlock detected error" condition.
---

I use 4608 and it seems to have solved our problems
(D3 C/S and BDE 4.51)

Hope this helps
RCJ
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is it possible to connect Database from Mobile APK to Website MySQL 3 65
how to center only a line in richedit? 4 51
Printing problem 2 79
Multiple image collision 13 69
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now