Solved

Deadlock detected. Deadlock (argh!)

Posted on 1998-03-21
1
501 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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