home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: 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
-
- 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?"
-