Preload unmanaged dll
I have a strange problem in my windows form application.
Sometimes the loading time for a dll is very long (the frustrating thing is that this happens randomly, sometimes there are no problems)
One more thing:
This only happens in Windows 7 (never in Windows XP).


The loading of the dll happens when its used the first time.

Does anyone has some advices what I could do.

Is it possible to preload the dll or give it higher priority, etc.?
Has dll loading changed in Windows 7 (maybe some new security checks before the loading)

Some specification:
.NET 4.0
The dll is not managed code (I placed the dll in the folder where the executables are)


Preload unmanaged dll
===

I have a strange problem in my windows form application.
Sometimes the loading time for a dll is very long (the frustrating thing is that this happens randomly, sometimes there are no problems)
One more thing:
This only happens in Windows 7 (never in Windows XP).


The loading of the dll happens when its used the first time.

Does anyone has some advices what I could do.

Is it possible to preload the dll or give it higher priority, etc.?
Has dll loading changed in Windows 7 (maybe some new security checks before the loading)

Some specification:
.NET 4.0
The dll is not managed code (I placed the dll in the folder where the executables are)

