Article View: comp.os.os2.programmer
Article #1848Re: Static variables in DLL's == shared memory ???
From: Eric Giguere
Date: Wed, 11 Nov 1992 19:15
Date: Wed, 11 Nov 1992 19:15
17 lines
1238 bytes
1238 bytes
In article <1992Nov11.164359.2195@cs.tu-berlin.de> ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
>If I load a DLL containing static variables at runtime and the same DLL
>is loaded by another process, is the static data shared between the two
>processes ? (Hopefully not ;-)
Maybe. When you link the DLL, you specify in the DEF file for the DLL
whether or not you want the data segment to be shared by all processes
using the DLL or that each process has its own copy. The default is
shared. You use a statement like
DATA MULTIPLE READWRITE LOADONCALL NONSHARED
to give each process a copy.
--
Eric Giguere giguere@csg.UWaterloo.CA
So is Windows NT short for "Windows, NOT?"
Technical Details
Message-ID:
<BxKG5B.KpG@watserv1.uwaterloo.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!csg.uwaterloo.ca!giguereReferences:
<1992Nov11.164359.2195@cs.tu-berlin.de>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!csg.uwaterloo.ca!giguere From: giguere@csg.uwaterloo.ca (Eric Giguere) Subject: Re: Static variables in DLL's == shared memory ??? Message-ID: <BxKG5B.KpG@watserv1.uwaterloo.ca> Sender: news@watserv1.uwaterloo.ca Organization: Computer Systems Group, University of Waterloo References: <1992Nov11.164359.2195@cs.tu-berlin.de> Date: Wed, 11 Nov 1992 19:15:09 GMT Lines: 17