Skip to content

startup code on Windows should use SetDllDirectory("")

See Raymond's blog about (un)safe dll loading. He points to a support article which recommends that new programs use SetDllDirectory("") to prevent the problem (it's not the default because that'd break old programs).

In the GHC context, this could go in the startup code for standalone executables. It is a process-scope property so changing it is not appropriate for DLL startup.

Trac metadata
Trac field Value
Version 7.0.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown/Multiple
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information