Subject | Re: [IBO] App using DLLs |
---|---|
Author | Geoff Worboys |
Post date | 2003-11-12T06:07:47Z |
> Is there an available example of calling a form in a DLL,Not sure about examples with DLLs, but a related note...
> passing the database connection handle?
> My app has grown quite huge and I need to modularize it.
It is generally much easier to modularise using runtime
packages - BPLs (which are just special DLLs). Its the way
Delphi/BCB is designed to be modularised.
The downside is that the app will use significantly more
memory - if I remember correctly one of my apps used something
like 12-15Mb more RAM when running using runtime packages as
opposed to running as an all-in-one executable.
But then that example comes from a library using runtime
packages for the VCL, IBO, DreamComponents, ReportBuilder and
my own packages. So your situation may vary. I ended up
going back to an all in one - which meant it could run more
efficiently on terminal server (but not at all on Win9x
because I ran into resource issues).
With runtime packages you dont generally need to worry about
issues such as connection handle sharing - although there
again it depends on exactly how you implement.
--
Geoff Worboys
Telesis Computing