Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-10-31
4
Medium Priority
?
365 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 and use structures 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.

715 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