[DUG] TADOConnection ConnectionObject sharing across dll boundary
Robert martin
rob at chreos.co.nz
Wed Aug 6 14:54:44 NZST 2008
Hi
I don't use ADO much but we do this with IBObjects components and pass
the 'DBHandle' (a property) and assign that to the dlls Connection.
This makes things significantly faster.
Hth
Rob
Leigh Wanstead wrote:
> 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
>
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
>
More information about the Delphi
mailing list