[DUG] DLL loading slowed by anti-virus

Ross Levis ross at stationplaylist.com
Tue Sep 22 14:42:56 NZST 2015


My automation app loads 1 of perhaps 30 different 3rd party DLL's depending
on the job required.  It only has to do 1 job at a time and if the job
changes (automatically), the current DLL is unloaded and the relevant one is
loaded using LoadLibrary.  All the DLL's have the same interface/functions.

 

It seems in recent times that the loading of a DLL is taking much too long
for many customers, sometimes several seconds, which isn't acceptable, and
it appears to be related to anti-virus software scanning the DLL every time
it loads, or at least the first time it has loaded on that day.  That seems
to vary in different anti-virus software.

 

I need to remove that delay.  I would rather the main app not load every
single DLL at startup as that would take a long time to load, and often only
2 or 3 of the DLL's will ever be used by a customer.

 

There are 2 apps loaded at the same time and rather than altering the app
that loads the DLL's and does all the work, my thought was to have this 2nd
app load all the DLL's in the folder using a thread.

 

Am I correct that a 2nd app loading the same DLL will not actually load the
DLL from the hard drive but just access it from RAM, so it should load very
quickly?

 

Cheers,

Ross.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150922/d1ee8ac3/attachment.html 


More information about the Delphi mailing list