home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6347 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!csg.uwaterloo.ca!giguere
  3. From: giguere@csg.uwaterloo.ca (Eric Giguere)
  4. Subject: Re: Static variables in DLL's == shared memory ???
  5. Message-ID: <BxKG5B.KpG@watserv1.uwaterloo.ca>
  6. Sender: news@watserv1.uwaterloo.ca
  7. Organization: Computer Systems Group, University of Waterloo
  8. References: <1992Nov11.164359.2195@cs.tu-berlin.de>
  9. Date: Wed, 11 Nov 1992 19:15:09 GMT
  10. Lines: 17
  11.  
  12. In article <1992Nov11.164359.2195@cs.tu-berlin.de> ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:
  13. >If I load a DLL containing static variables at runtime and the same DLL
  14. >is loaded by another process, is the static data shared between the two
  15. >processes ? (Hopefully not ;-)
  16.  
  17. Maybe.  When you link the DLL, you specify in the DEF file for the DLL
  18. whether or not you want the data segment to be shared by all processes
  19. using the DLL or that each process has its own copy.  The default is
  20. shared.  You use a statement like
  21.  
  22.       DATA MULTIPLE READWRITE LOADONCALL NONSHARED
  23.  
  24. to give each process a copy.
  25.  
  26. -- 
  27.  Eric Giguere                                    giguere@csg.UWaterloo.CA
  28.           So is Windows NT short for "Windows, NOT?"  
  29.