Solved

Deadlock detected. Deadlock (argh!)

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

22 Experts available now in Live!

Get 1:1 Help Now