Ticket #4520 (new feature request)

Opened 2 years ago

Last modified 8 months ago

startup code on Windows should use SetDllDirectory("")

Reported by: duncan Owned by:
Priority: low Milestone: 7.6.2
Component: Runtime System Version: 7.0.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History

Changed 2 years ago by igloo

  • milestone set to 7.2.1

I'm a little wary of being different than other languages. If we do this I think we should prominently document it in the user guide.

Changed 15 months ago by igloo

  • priority changed from normal to low
  • milestone changed from 7.4.1 to 7.6.1

Changed 8 months ago by igloo

  • milestone changed from 7.6.1 to 7.6.2
Note: See TracTickets for help on using tickets.