Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi FireDAC hanging on ISAPI bpl finalization with pooled connections


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jul 19, 2016 11:01 PM Last Post By: Dmitry Arefiev
Steve Kramer

Posts: 1
Registered: 5/5/98
Delphi FireDAC hanging on ISAPI bpl finalization with pooled connections  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 18, 2016 4:50 PM
I've written an ISAPI module in Delphi XE10 using pooled FireDAC connections. In the unit's finalization section, I have the code:

Finalization
  FDManager.Close;


The application freezes on the FDManger.Close line.

I have the Professional Delphi version which doesn't include FireDAC's source code, so I can't see why it's stuck, but whatever the reason, it's preventing IIS from shutting down.

I found this page

[http://docwiki.embarcadero.com/RADStudio/Seattle/en/DLL_Development_(FireDAC)|http://docwiki.embarcadero.com/RADStudio/Seattle/en/DLL_Development_(FireDAC)]

that contains a section called FireDAC DLL Unloading that mentions that FireDAC can hang in DLL's. I tried the remedies mentioned there, but they didn't help.

The application doesn't hang if I don't use pooled connections.

Any suggestions?

Thanks,

Steve Kramer
Dmitry Arefiev

Posts: 1,406
Registered: 12/7/03
Re: Delphi FireDAC hanging on ISAPI bpl finalization with pooled connections  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 19, 2016 11:01 PM   in response to: Steve Kramer in response to: Steve Kramer
Did you tried to call FDManager.Close not from "finalization" section,
but explicitly before unloading the DLL ?

--
With best regards,
Dmitry

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02