Re: [GD-Windows] DLL initialization (was: Loading new DLLs on old Windows)
Brought to you by:
vexxed72
From: Andras B. <bn...@ma...> - 2004-02-13 17:24:14
|
Hi Jon, The DLL exists (otherways the error code would be different), and it also doesn't mess with UNICODE. The logs report that memory is also sufficient. Unfortunately, I can't use a debugger, as this error doesn't happen on my machine. Actually, this program is just my tech demo. Many people have tried it and I got a lot of positive feedbacks so far, but now some guy told me that it breaks on his machine, giving this error message... So I have to figure this out blindly.. Thanks, Andras Thursday, February 12, 2004, 9:10:43 PM, Jon Watte wrote: > Typically this means that you're linking with a DLL that doesn't exist, or > you're calling UNICODE functions without unicode support, or you're plain > running out of memory. Do you have one of the machines available for > debugging? WinDbg sometimes helps in debugging these things. > Cheers, > / h+ > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Andras Balogh > Sent: Thursday, February 12, 2004 4:21 AM > To: gam...@li... > Subject: [GD-Windows] DLL initialization (was: Loading new DLLs on old > Windows) > My program supports dynamic loading of plugins. Every plugin > represents a class, and resides in a separate DLL. Instead of > exporting the class itself, I only export a factory function and > provide a header file with the declaration of the pure virtual base > class (ie. the interface). At runtime, I load the DLL and call the > exported factory function, which instances an object and returns a > pointer to the base class. > This architecture works like a charm on most machines. However, on > some configurations, my program reports the following: "Error Code > 1114: A dynamic link library (DLL) initialization routine failed." > But I have no clue why. Do I have to use DllMain? MSDN says it's only > an optional entrypoint.. My DLLs are dynamically linked to the C/CPP > run-time libraries. > Thanks, > Andras |