?
Solved

Deadlock detected. Deadlock (argh!)

Posted on 1998-03-21
1
Medium Priority
?
509 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 1360 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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