/DELAY (Windows CE 5.0)

Send Feedback

This option controls delayed loading of DLLs.

/DELAY:UNLOAD
/DELAY:NOBIND

Remarks

The UNLOAD qualifier tells the delay-load helper function to support explicit unloading of the DLL. The Import Address Table (IAT) is reset to its original form, invalidating IAT pointers and causing them to be overwritten.

If you do not select UNLOAD, any call to FUnloadDelayLoadedDLL will fail.

The NOBIND qualifier tells the linker not to include a bindable IAT in the final image. When this happens, the DLL is said to be bound. The default is to create the bindable IAT for delay-loaded DLLs. The resulting image cannot be statically bound. (Images with bindable IATs may be statically bound prior to execution.)

If the DLL is bound, the helper function will attempt to use the bound information instead of calling GetProcAddress on each of the referenced imports.

If the timestamp or the preferred address do not match those of the loaded DLL, the helper function will assume the bound IAT is out of date and will proceed as if the bound IAT does not exist.

NOBIND causes your program image to be larger but can speed load time of the DLL. If you never intend to bind the DLL, NOBIND will prevent the bound IAT from being generated.

To specify DLLs to delay load, use the /DELAYLOAD option.

See Also

Linker Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.