[GHC] #3605: Dll's freeze with -threaded
GHC
trac at galois.com
Thu Nov 5 11:33:42 EST 2009
#3605: Dll's freeze with -threaded
---------------------------------+------------------------------------------
Reporter: NeilMitchell | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.12.1
Component: Documentation | Version: 6.12.1 RC1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonmar):
I had a nagging feeling I'd come across this before, and indeed the docs
do have a section describing a lot of the problems with `DllMain()`:
[http://www.haskell.org/ghc/docs/latest/html/users_guide/win32-dlls.html#id585039]
However earlier on in that section the sample code still contains a
`DllMain()` that calls `startupHaskell`, so we should fix that. Also the
section on `DllMain` talks more about shutdown than startup, but both are
dangerous (fortunately the example code it gives is correct).
Neil, Lennart: could you check the docs I linked to above and see if you
agree?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3605#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list