home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3438 next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.6 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!spool.mu.edu!agate!usenet.ins.cwru.edu!cleveland.Freenet.Edu!ae302
  2. From: ae302@cleveland.Freenet.Edu (Peter Haller)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Faking re-entrancy with second copy of DLL?
  5. Message-ID: <1e5tp8INN4g2@usenet.INS.CWRU.Edu>
  6. Date: 15 Nov 92 16:27:20 GMT
  7. Article-I.D.: usenet.1e5tp8INN4g2
  8. References: <1992Nov14.093916.1050@netcom.com>
  9. Reply-To: ae302@cleveland.Freenet.Edu (Peter Haller)
  10. Organization: Case Western Reserve University, Cleveland, OH (USA)
  11. Lines: 31
  12. NNTP-Posting-Host: slc4.ins.cwru.edu
  13.  
  14.  
  15. In a previous article, mbk@netcom.com (Miles Kehoe) says:
  16.  
  17. >OK, imagine you had a DLL from company X called X.DLL.
  18. >Company X says it is not reentrant, so you know you cannot
  19. >have two programs active which use X.DLL.
  20. >
  21. >If you rename X.DLL to Y.DLL, and tell your program to
  22. >access Y.DLL instead of X.DLL, is anything else going
  23. >to bite you? It *looks* like 'x' is stored in X.DLL
  24. >and simply renaming the DLL file does NOT do the
  25. >complete trick. 
  26. >
  27. >Suppose now that you had a copy of the DLL source; can
  28. >you simply rename and relink it?
  29. >
  30. >I know it's wierd.... just trying to fake it!
  31. >
  32. >Miles
  33. >
  34. >
  35. A non-reentrant DLL? Must be using a lot of static allocations or
  36. Global buffers. Nasty stuff. What you are talking about though
  37. should work fine since an new copy of the DLL is used.
  38.  
  39. PCH
  40. -- 
  41. Peter C. Haller                         |       'If you do what you
  42. Lorain Products                         |       have always done,
  43. ae302@cleveland.Freenet.Edu             |       expect what you have
  44. "Are we having fun yet?"                |       always received.'
  45.