#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 NeilMitchell):
I suggest the docs are rewritten to tell people never use DllMain, and
just say that "calling either hs_init or hs_exit from DllMain may lead to
program freezes - don't do it". That section also has two examples - one
calling from C, and one from VBA. I suggest a complete rewrite showing how
to create a single unified example DLL, then how to call it from both VBA
and C++, never using DllMain in either case.
If that sounds satisfactory, I'll make the changes to the docs and send a
patch in.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3605#comment:7>
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