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 8174901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:34:56+00:00 2026-06-06T22:34:56+00:00

The following question is not a typical programming question, but IMHO programmers are affected

  • 0

The following question is not a typical programming question, but IMHO programmers are affected by this and are most likely to have a solution.

I have a Windows desktop application that communicates with a server. The client app has an optional “offline mode” feature (primarily for laptops), which works by serializing DTOs locally until a user returns to his LAN. The DTOs are serialized to encrypted XML files which are written whenever the data changes (writtend to the user’s [AppData]/AppName dir).

The problem is that some of the users tend to leave the application open and close the laptop until it eventually runs out of battery, and when they return to the office the XML files don’t exist anywhere on the laptop’s disk.

I’ve combed the code countless times, implemented various writer/stream flushes, file-existence/timestamp checks after the file is written, etc. and it’s still happening. The only thing I can think of is windows write-caching, which is enabled by default on XP, Vista and 7. Is it known that it can cause problems of this kind and how can I prevent them in my app (short of forcing the users to turn off write caching globally)?

I’ve found Sysinternals Sync which seems like it does disk-cache flushing, but it requires admin privileges which my users don’t have.

  • 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-06T22:34:57+00:00Added an answer on June 6, 2026 at 10:34 pm

    I personally doubt seriously that any disk cache could delay writing a small file physically for longer than few seconds except in extreme cases.

    I would suggest to log a line whenever the data is serialized, and check whether it get’s written; which is what I believe you’ve tried first.

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

Sidebar

Related Questions

I tried following the answer to this question , but could not get xsd.exe
I tried the following but am not getting 0 or 1. The question is
I have the following question. I have a set of Fortran90 source files, most
I've not found a answer to this question anywhere, but this seems like a
Taking Sql this quarter and not having any luck with the following question: The
I've not found a answer to this question anywhere, but this seems like a
I am working the following question for my Oracle class. I have the solution
Greetings, I have the following question. I did not find the exact answer for
This is related the following question , but I thought I would create another
[Meta notes: the following question is not answered, but the problem that the question

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.