[GHC] #7612: Automatically start the haskell runtime in DllMain on windows -shared

GHC cvs-ghc at haskell.org
Mon Jan 21 14:49:28 CET 2013


#7612: Automatically start the haskell runtime in DllMain on windows -shared
------------------------------+---------------------------------------------
  Reporter:  schyler          |          Owner:                  
      Type:  feature request  |         Status:  closed          
  Priority:  normal           |      Milestone:                  
 Component:  Compiler         |        Version:  7.6.1           
Resolution:  wontfix          |       Keywords:                  
        Os:  Windows          |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown     |     Difficulty:  Unknown         
  Testcase:                   |      Blockedby:                  
  Blocking:                   |        Related:                  
------------------------------+---------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 You're looking at a very old version of the docs, the latest is here:
 [http://www.haskell.org/ghc/docs/latest/html/users_guide/win32-dlls.html].
 Note in particular that you cannot initialise Haskell from `DllMain()`,
 and the function to call is `hs_init`, not `startupHaskell`.

 I'm not sure if it's possible to do what you want.  You can't call
 `hs_init` from `DllMain`, and you can't create a thread that will call it
 later.  So I'll close this ticket, but if you think it can be done please
 re-open and describe how.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7612#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list