From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public From: "Daniel Johnson" Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/19 Message-ID: <7s3uf2$u0$1@bgtnsc01.worldnet.att.net>#1/1 X-Deja-AN: 527233570 References: <37D81FE1.E90C3B1F@winkinc.com> <7rhnid$g6e$1@Mercury.mcs.net> <7s3cvv$1sm8$1@Mars.mcs.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc01.worldnet.att.net 937786658 960 12.78.203.245 (20 Sep 1999 00:17:38 GMT) Organization: AT&T WorldNet Services X-MSMail-Priority: Normal NNTP-Posting-Date: 20 Sep 1999 00:17:38 GMT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss Leslie Mikesell wrote in message news:7s3cvv$1sm8$1@Mars.mcs.net... > In article , > Graham Murray wrote: > >In gnu.misc.discuss, les@Mercury.mcs.net (Leslie Mikesell) writes: [snip] > The point is, you *can't* resolve the conflict if another app needs > a different DLL of the same name, whether they are different versions > of the same thing or two different things entirely. Once one of > them is loaded, you can't load a different one from a different > location without rebooting to get rid of the other one. To quibble: You actually *can* if you try hard enough, but nobody does. To do it, you need to specify a full or partial path, not just a filename, when you load the library. If you specify just the filename, the first thing Windows does is check for loaded libraries having same name. The normal load-time linking procedure does it by filename (not path), so 90% of the time you are going to get the already loaded library. The trick to getting a different version is unloading the library, which is most cases not not require a reboot. (However, there are some libraries that the system loads and never unloads. For those, you'll have to reboot.)