|
From: Mikael A. <mik...@ma...> - 2001-06-04 23:42:53
|
Hi ! Are you 100% sure that the dll is loaded twice ?, as far as I know it is not possible to load a dll with the same name twice (the name of the dll, not the name of the file). At least not without using the nasty little .NET If it is indeed loaded twice, then I think there must be some weird problem causing it, but I am sorry to say that I have no idea what it might be.... Mikael ----- Original Message ----- From: "Clark Sims" <cs...@te...> To: <min...@li...> Sent: Monday, June 04, 2001 7:44 PM Subject: [Mingw-users] Dll Problem, The same Dll is loaded twice > I have written my own heap and encapsulated the heap in a dll, "heap.dll". > Most of the test programs I have written, work fine with this dll. But there > is one notable exception. I have also written my own file buffering library, > and encapsulated it in a dll, "event.dll". When I call the file buffering > library, heap dll, gets loaded a second time. This causes no end of mischief > because the global scope variables in heap.dll now have 2 copies loaded into > memory. > > Has anybody else seen this problem? How can I force the executable to use > only one copy of heap.dll? It should only need one copy. I could tar.gz the > source code / make files, but the examples are rather large. Of course, all > my smaller examples work fine, it is only the big projects that have > problems. So there really is no way to post a simple code fragment to > illustrate the problem. > > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options at: > http://lists.sourceforge.net/lists/listinfo/mingw-users |