On 9/26/2011 1:51 PM, Steven Schveighoffer wrote:
AHA!
Holy cow what happened XD
Yes, there is a bug in snn.lib regarding pipes. And I fixed it,
waiting for Walter to incorporate it :) I needed it for the new
std.process.
yay!
What it comes down to is, DMC's FILE * implementation does not expect
some of the quirks of pipe HANDLEs. For instance, if you open a FILE
* around a pipe handle, it still tries to do a seek on that handle,
and crashes. Also, when the write end of a pipe is closed, reading
from the read end results in EPIPE from ReadFile, but this is
translated to EBADF by the runtime. Therefore, FILE * sets an error
instead of EOF.
Is the email address you have for this message correct? If so, I can
send you a new version of snn.lib to try linking your code against (if
you are willing to go through these steps), to see if it fixes your
problem.
Using the command line dmd to build should be sufficient (I think).
-Steve
Yup, feel free to send it to this one. It's not my main one but I do
check it so I'll get it. :)
Thanks!