In article <11**********************@g14g2000cwa.googlegroups .com>,
mojozoox <ma*******@HotPop.com> wrote:
Could you tell me scenarios in which core's dumped when writing to a
pipe.
Pipes are not part of standard C. Can you repeat the
problem with writing to a file opened for binary output?
write (pipefd,&Struct,structsize);
on windows too this give a memory "read" violation. Could anyone tell
me why.
structsize perhaps does not match sizeof(Struct) ?
The contents of Struct has perhaps not been initialized and
windows is perhaps detecting this?
pipefd might not be valid?
Struct might not even be the right type -- e.g., it might
really be a pointer to a structure and so you might be
taking the address of a pointer instead of passing
the address of a structure.
--
"[...] it's all part of one's right to be publicly stupid." -- Dave Smey