Solved

Deadlock detected. Deadlock (argh!)

Posted on 1998-03-21
1
505 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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