Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8258827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:40:57+00:00 2026-06-08T02:40:57+00:00

Well, I managed get the delegate driver to set up properly, but connection pooling

  • 0

Well, I managed get the delegate driver to set up properly, but connection pooling is still giving me a lot of trouble.

From the descriptions given in the documentation, it appears that connection pooling should work like this:

  • Set up the DBXPool driver delegate on a single, global Connection object
  • Use this Connection object for all calls into the database
  • Each DB call will get automagically routed through the delegate driver into a connection that’s unique to its thread, owned by the connection pool.

In practice, I’m finding that everything seems to still be handled by the global Connection object, leading to all sorts of strange race conditions and crashes when I try to run DB queries from multiple concurrent threads.

In case it’s relevant, I don’t have many DBX-specific components defined; I generally run queries by calling the Connection.Execute method.

Any idea what I’m doing wrong? Am I missing a step somewhere, or do I have a bad understanding of how the DBXPool delegate driver works?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:40:58+00:00Added an answer on June 8, 2026 at 2:40 am

    Delphi comes with a sample project DelegatesSample. On my machine it is located under \Documents\RAD Studio\8.0\Samples\Delphi\Database\dbExpress\Delegates.

    Each connection in the pool has it’s own TDBXConnection object. In sample source code each connection is created by call to TDBXConnectionFactory.GetConnectionFactory.GetConnection().

    As you know of course, each query in a thread should have it’s own connection object.

    Felix Colibri has also great article about Delphi DBX4 programming. There he describes amongst other topics also pooling database connections using a pooling delegate driver.

    At least these samples helped mine understanding how connection pooling works!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I managed to get some code rolling for updating the AD from an
A little while ago, I managed to get WebServices to return JSON as well
Well I have this code in my Managed C++/Cli in Visual Studio 2008, I
I'm trying build a MVC framework, but I'm confused about manage themes. Well... I
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
Well, I have a application which somehow requires some system resources, but how do
Well, i took a break from RoR for studies, now I am back, I
I'm trying to get this content loader to work and I've managed to get
After surprisingly little hacking about, I managed to get libc++ installed on my Linux
I'm very new to android, in fact only started yesterday. I managed to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.