Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Delay Loaded Dlls and LoadLibrary

Hugo_G_
Beginner
639 Views
Hello.

I am trying to use the delay option of the compiler to load the dlls at the moment when I'm going to use them, because I have a lot of dlls so if I load want perhaps I don't want to load all the temporally dependecies. For example, if I have,

Library1.dll that depends on Library2.dll, and when the application load Library1.dll not always Library2.dll is used. If I use the Delay load Dlls Library2.dll will be loaded only when something of this dll is going to be used, isn't it?

So I add the Delayimp.lib in the additional dependencies for the links and also I add the dll (Library2.dll) in the Delay loaded Dlls ([/DELAYLOAD Library2.dll).

Even with that, When I load Library1.dll, Libray2.dll is load, Am I using this in wrong way? It's something missing?

Thanks in advance,

Best regards
0 Kudos
2 Replies
g_f_thomas
Beginner
639 Views

This just in:

http://www.codeproject.com/dll/Delay_Loading_Dll.asp

This is all well and good for Dlls but how does one unload their client? Task Manager?

0 Kudos
Hugo_G_
Beginner
639 Views

Hello,

I have been cheking the problem,

If all the dll that I am linking are writed in Fortran, it is posible to use delay dll, but in the moment that I use any dll writed in VC++, this it is not posible, but I don't know if it is because I have to use any specific options in the VC++ project.

Thanks

Best regards


0 Kudos
Reply