🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2178

Named Pipes problem

#2178
From: Martin
Date: Mon, 23 Apr 2007 14:34
16 lines
1504 bytes
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.

I've tracked this down using the multi-threaded pipe server example from 
the MS SDK.  You can exhibit the problem if you change the CreateThread 
call to Borland's _beginthread, which they require to initialize the 
runtime libraries.

Has anyone tried getting named pipes to work in this model? How 
necessary is it to use _beginthread instead of CreateThread?

Thanks,
Marty
Technical Details
Message-ID: <462cc3e6$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-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6ec9191177bf375b,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 23 Apr 2007 07:34:13 -0700
From: Martin <dev@no.comppromed.spam.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Named Pipes problem
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.201.233.20
Message-ID: <462cc3e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1177338854 208.201.233.20 (23 Apr 2007 07:34:14 -0700)
Lines: 16
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