I'm trying to use Named Pipes with the new thread pool API. My code works most of the time but I'm getting intermittent invalid parameter exception when call StartThreadpoolIo. I've verified that the TP_IO hasn't been closed, and the handle is valid; so I'm at a loss as to what's going wrong.
Does anyone know what other conditions cause an invalid parameter exception?