Big picture on shared libraries when they go wrong, how?
Adam Wilson
flyboynw at gmail.com
Wed May 8 10:00:25 UTC 2024
On Wednesday, 8 May 2024 at 07:15:20 UTC, Walter Bright wrote:
> On 5/7/2024 8:45 PM, Richard (Rikki) Andrew Cattermole wrote:
>>> They don't have much in common with shared libraries on OSX
>>> and Posix.
>>
>> They do have plenty in common, this is a misconception I
>> really want to get you off of. There is a dedicated heading
>> for this ``Is a Dynamic Link Library a Shared Library?``.
>
> Isn't it true that DLLs on Windows share their global data
> segment with all users of the DLL? While Linux shared libraries
> have a separate data segment for each process?
I've been writing DLL's since Windows 2000, and this has not been
true for the entire time I've been doing this. As far as I know,
*if* this was ever true, then it hasn't been true since Windows
3.1. The global data segment is shared at the per-process level,
no further. And I for one do *not* want to consider the absolute
chaos that would ensue if it were any other way... \<runs away in
terror>.
More information about the Digitalmars-d
mailing list