[fpc-pascal] Inter-process communication, a cautionary tale

OBones obones at free.fr
Wed Jul 18 14:57:13 CEST 2012


Mark Morgan Lloyd wrote:
> A couple of weeks ago, out of curiosity rather than necessity, I 
> started looking at whether the library could be ported to Windows 
> using MS-style named pipes. However I seem to have hit a snag since it 
> appears that Windows can't both create a named pipe (for reading) and 
> open the same named pipe (for writing) in the same process, something 
> that gives unix sockets no problems at all.
Could you show us some code here?
And what return values do you get?
I'm asking because I have distinct memories of doing just that a while 
back without any issue.



More information about the fpc-pascal mailing list