Article View: borland.public.cppbuilder.nativeapi
Article #2179Re: Named Pipes problem
From: Remy Lebeau (TeamB)
Date: Mon, 23 Apr 2007 18:15
Date: Mon, 23 Apr 2007 18:15
23 lines
1689 bytes
1689 bytes
"Martin" <dev@no.comppromed.spam.com> wrote in message news:462cc3e6$1@newsgroups.borland.com... > Using BCB 5 Pro, I'm trying to add named pipes to my app, and > having some problems after the first client disconnects and shutdown > Basically what's happening is that the server is getting error 232 > (pipe closing), 233 (no process at other end of pipe), or 6 (invalid > handle) when it's trying to use the pipe created for the second client. Did you call DisconnectNamedPipe() after the first client disconnected? You can't reuse an existing server pipe unless you do. This is stated in the documentation. > Has anyone tried getting named pipes to work in this model? How > necessary is it to use _beginthread instead of CreateThread? It is not necessary at all. I have plenty of named pipe code that works just fine with CreateThread(). Gambit
Technical Details
Message-ID:
<462cf7ad$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<462cc3e6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6ec9191177bf375b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <462cc3e6$1@newsgroups.borland.com> Subject: Re: Named Pipes problem Date: Mon, 23 Apr 2007 11:15:11 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.60.244 Message-ID: <462cf7ad$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177352109 75.82.60.244 (23 Apr 2007 11:15:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail