Page 1 of 1

It would be much better to change base (image) address for the ODAC bpls

Posted: Tue 12 Dec 2006 04:52
by scarecrow
ODAC compiled libraries use the same image base address of $00400000 which is the default for all apps and libraries written in Delphi.

This causes all ODAC libraries to be relocated when loaded - for each instance of ODAC using application. Here's a screenshot from ProcessExplorer memory map:

Image

So you can see at least 1 MB (dac70.bpl + odac70.bpl) of precious physical memory is 'wasted' for each process as modules cannot be shared due to relocation.

So, could you be so kind to allocate the ODAC a more 'specific' image base addresses (different for each module), as Borland and Microsoft do for their libraries (see the picture)?

Posted: Tue 19 Dec 2006 14:46
by Plash
We'll consider possibility to change the image base of ODAC libraries in either of the next ODAC builds.