#4520: startup code on Windows should use SetDllDirectory("")
---------------------------------+------------------------------------------
Reporter: duncan | Owner:
Type: feature request | Status: new
Priority: normal | Component: Runtime System
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
See [http://blogs.msdn.com/b/oldnewthing/archive/2010/11/10/10088566.aspx
Raymond's blog] about (un)safe dll loading. He points to a
[http://support.microsoft.com/kb/2389418 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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4520>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs