Solved

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

Posted on 2006-10-31
4
357 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

Technology Partners: 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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops 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.
Suggested Courses

623 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