[DUG] TADOConnection ConnectionObject sharing across dll boundary

Leigh Wanstead leighw at softtech.co.nz
Wed Aug 6 14:37:40 NZST 2008


Good afternoon,

I have a exe application with multiple dlls. Each dll has a datamodule
including a TADOConnection. It takes around half seconds to run
TADOConnection.Connected := true I assume this is normal.

But all these time total up takes around several seconds which is too long.
I think that I only have one TADOConnection in one dll. And share the rest
with this TADOConnection. Can I just pass TADOConnection.ConnectionObject
around to share dll? My understanding is delphi object can not be shared
across dll. But _Connection should be ok, right?

BTW, what is the right way to share TADOConnection across dll boundary?

Have a nice day

Regards
Leigh




More information about the Delphi mailing list