After I made my DLL delay-load another DLL, my DLL has started crashing in its process detach code

1 · Raymond Chen · July 18, 2019, 3:16 p.m.
A customer had a DLL, let’s call it CONTOSO.DLL, and that DLL linked to another DLL, let’s call it WIDGET.DLL. To improve DLL load time, they made WIDGET.DLL a delay-loaded DLL via the /DELAYLOAD linker option. This worked out great, except that sometimes their DLL crashed when shutting down. The post After I made my DLL delay-load another DLL, my DLL has started crashing in its process detach code appeared first on The Old New Thing....