[DUG] DLLs and memory space

Dennis Chuah dennis_cs_chuah at hotmail.com
Fri May 5 00:06:04 NZST 2006


In 32-bit windows, all global variables are in the application data space. 
The DLL code is in its own space, but mapped to the application's.  You 
cannot share variables between application instances simply by declaring 
them as global.

In 16-bit windows, all DLL global variables are owned by the first 
application instance that loaded the DLL.

----- Original Message ----- 
From: "Rohit Gupta" <r.gupta at xtra.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Sent: Thursday, May 04, 2006 11:16 PM
Subject: [DUG] DLLs and memory space


> When a DLL is loaded explicitly using LoadLibrary, which memory 
> space/segment do its global variables occupy ?
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 


More information about the Delphi mailing list