TMSConnection in a DLL

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
tojo
Posts: 1
Joined: Thu 08 Jan 2009 08:15

TMSConnection in a DLL

Post by tojo » Thu 08 Jan 2009 09:30

I'm having a DLL, which creates a TMSConnection and connects to a DBMS.
The client program spawns threads (with CoInitialize-calls) and calls the DLL. When doing a stress test I get Access Violations!!

If I put the same code inside the client (no DLL) everything works fine...

Is there anything I have to consider when using connections inside a DLL, which is called by a thread?

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 08 Jan 2009 14:55

Please try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Post Reply