Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9276427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:51:03+00:00 2026-06-18T16:51:03+00:00

I am considering using named pipes for debug output from a DLL. My DLL

  • 0

I am considering using named pipes for debug output from a DLL. My DLL is loaded by a proprietary closed source program which crashes now and then. The problem is that when the program crashes some of my current log output gets lost because windows cleans up everything before it is written to disk.

So my question is if I create a named pipe in a separate process and connect to it from my DLL and the process my DLL is in crashes and is cleaned up will I still be able to read data that was written into the named pipe just before the crash from my second process?

I have to write into the Named pipe in a non blocking (buffered) manor as to affect timing as little as possible, what is the best configuration? Overlapped IO? Can someone give a link to good reading? (I’m not a C++ beginner but I am a WinAPI beginner)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:51:04+00:00Added an answer on June 18, 2026 at 4:51 pm

    I don’t believe the named pipe buffered data survives the failure of one partner. Even if you manage to reopen the pipe any data from the old instantiation will be gone.

    You could use Memory-Mapped Files (Windows mechanism for interprocess shared memory) instead but you’d have to be careful about handling the state of the shared data space – where to resume writing new data when the process wakes up again? Some kind of “I’ve read this far” indication from the sink, maybe. You’d also have to flush data on write in the source to avoid the problem you recognised with this question, that might make performance subpar but you could test first, tune later.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are considering using Cassette in our asp.net web application which might be accessed
I'm considering using a persistent connection to a cloud service from an Android app.
I am considering using pdf.js (an open source tool that allows embedding of a
I was considering using Dart for a Framework I was going to write. One
I'm considering using the CFUUIDCreate API to build a database in my server to
I'm considering using the Google Contacts API for a webapp, but I'm worried that
I'm considering using memcached (at some point) in my application i'm currently developing. Eventually,
I'm considering using Grails for my current project. I have a couple of requirements
I am considering using something like StackFrame stackFrame = new StackFrame(1) to log the
I am considering using ClickOnce for a legacy Windows Forms application. I have several

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.