Solved

NamedPipe: If FlushFileBuffers(hPipe), can it be tried again by re-connecting to the named pipe

Posted on 2006-10-31
4
346 Views
Last Modified: 2010-04-15
Hi,

If the FlushFileBuffers(hPipe) in a namedpipe server has failed with an error "Pipe has been ended",
Is there any way to again to connect to the same pipe and try flushing the buffer ? Will I loose the contents that couldn't be flushed with the FlishFileBuffers(hPipe) ?
0
Comment
Question by:vanaggarwal
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17850806
>>Is there any way to again to connect to the same pipe and try flushing the buffer ?

There is no need to do so. The system will flush the pipe when it is closed gracefully. If the pipe is forcibly shutdown by the "other" side (which would cause data loss), reconnection atempts will be futile anyway.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
libcurl - taking long time on curl_easy_perform 11 462
Problem to save 10 174
Unable to start eclipse ? 17 162
NEED HELP WITH VISUAL STUDIO 2017 (beginner) 6 83
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question