Re: Customize operator new / delete
On 2011-05-18 11:32:43 -0400, io_x said:
if you have 10000 C++ programs tha use the same routines
could be good to have put all these routine in a .dll
so one not have to load always the same code
but it is load only one time, and so the space of memory
where these routine are written- it is only one place
only static .data of the set of to these routines
should be in each process out of the .dll
at last at what i belive to have understood
Yes, that's the theory. In practice, even Microsoft refers to this as
"DLL hell". A typical system ends up with multiple, perhaps
inconsistent, versions of various DLLs and often there's no good way of
knowing which version will be selected for a particular application.
The result is that your application may or may not work right,
depending on which version of each of its DLLs gets loaded. Unless, of
course, your application supplies its own version of every DLL that it
uses.
--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)