Solved

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

Posted on 2006-10-31
4
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

710 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