Topic: Reasons ERROR_DLL_INIT_FAILED
Came up against a mysterious situation for itself. Is written by me simple dll. At the moment of a spelling all in it worked correctly. In general, wrote it, laid out for users, complaints were not, and I forgot about it. It was required to me to modify a little dll under new requests of users. And here something was opened mysterious. It appeared that in Windows 10 with all updates dll boots through time. More precisely, it correctly boots very rarely, and a normal situation is or ERROR_DLL_INIT_FAILED, or what AV where that in system. It happens only in Windows 10. In dllmain anything criminal does not become. I began to reduce functionality what to seize the moment in which dll it will be loaded normally. In what that the moment it happens. I compared import new dll and old - a difference in import of one function InternetCrackUrlW. I included the source code which has been disconnected in experiment, delivered a stub on InternetCrackUrlW (that it would not appear in import) - and, about a miracle, dll began to be loaded normally. But where logic? I where read that in Creators Update the loading mechanism dll has been optimized. Whether there can be my situation a consequence of it? Also noted that Delphi on which I write, sometimes in import places one and function some times. It generally is lawful? How to search for the decision of such problem?