Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 18 May 2011 11:38:47 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Wed, 18 May 2011 12:38:48 -0400 Message-ID: <2011051812384823389-pete@versatilecodingcom> References: <4dd3e656$0$38645$4fafbaef@reader1.news.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Customize operator new / delete User-Agent: Unison/2.1.4 Lines: 28 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ReG5F0ULVsHqHj0wRJ2leftf1USESz9OJ+h8kAwBzCXxftP4GHOC6ILJblKqh4AyeeGRTATePNKQR/9!iqr3vqWohS4BeKJKdWuGl2dQ2iqO3kJ3eNBCKIBMgnLi93IrmjQMlaOqIp1S7hNDS11TnKVn X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2313 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:5135 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)