WriteFile: invalid argument (The handle is invalid.)
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.
Trac metadata
Trac field | Value |
---|---|
Version | 6.10.4 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |