#3710: WriteFile: invalid argument (The handle is invalid.)
---------------------------+------------------------------------------------
    Reporter:  dherington  |       Owner:                             
        Type:  bug         |      Status:  new                        
    Priority:  normal      |   Component:  Runtime System             
     Version:  6.10.4      |    Keywords:  garbage collector          
          Os:  Windows     |    Testcase:                             
Architecture:  x86         |     Failure:  Incorrect result at runtime
---------------------------+------------------------------------------------
 I defined an interface to the Windows WriteFile routine to allow
 specification of the starting address for the write.  It generally works,
 but when called repeatedly it reproducibly generates an unexpected error
 at runtime:

     WriteFile: invalid argument (The handle is invalid.)

 I suspect that garbage collection is involved because
     Bug1 2 fum 1000
 fails, but
     Bug1 +RTS -H1g -RTS 2 fum 1000
 (which serves, I think, to disable garbage collection for my test)
 succeeds.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3710>
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

Reply via email to