RE: [GD-Windows] DLL initialization (was: Loading new DLLs on old Windows)
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-02-12 20:14:38
|
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 ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |