Subject Re: [IBO] Multi-threaded ISAPI hangs
Author Daniel Rail
Hi,

At June 4, 2004, 17:10, Ed Dressel wrote:

> D7, FB 1.5

> This is critical--I have this in production.

> I've written multithreaded apps a number of times, there's no rocket
> science about them-but I can not get this to work.

> I have a TIB_Session (first component on the DM, meaning it is the
> first one in the data module), and a TIB_Connection on a TDataModule.
> For each call into the ISAPI, I create a new instance of the data
> module. (Note that the connection doesn't have any thing
> that 'points' to the session, but I don't see where it should).

> Now when I run one connection at a time to the database, it works
> fine, but as soon as I try to run simultaneously, the DLL hangs. I
> have traced it (using CodeSite) to the 2nd instance trying to connect
> to the database.

> The server doesn't max out--there's no apparent reason for the hang.
> But everytime I call.

> I had .DiscoonectToPool in the destructor but removed that thinking I
> might be using it wrong. This didn't help.

> My DFM is below.

> Any ideas on what I might be doing wrong?

Which Windows version are you using?

What are the settings associated with the ISAPI?

Which components are you using to develop your ISAPI module?

--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)