• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "RegistryKey.SetValue atomic or not."

Collapse

  • vwdan
    replied
    Originally posted by ASB View Post
    Looks like that#ll do the trick. Doesn't return until written (mind you I guess there is a risk that the disk hardware could conspire againstme. )
    Well, you can only do so much from a software perspective - if it's server based, you'd hope they were using a battery backed write cache.

    I'm no programmer, but does your data have to be registry based? If it were XML, you may be able to take a little more control over what happens to the data, but I guess it all depends on how abstracted you are and what the hardware is. If it's a SAN backed virtual environment you have no chance of guaranteeing a write!

    Leave a comment:


  • ASB
    replied
    Originally posted by lilelvis2000 View Post
    Dunno if this helps you out any: RegistryKey.Flush Method (Microsoft.Win32)
    Looks like that#ll do the trick. Doesn't return until written (mind you I guess there is a risk that the disk hardware could conspire againstme. )

    Leave a comment:


  • lilelvis2000
    replied
    Dunno if this helps you out any: RegistryKey.Flush Method (Microsoft.Win32)

    Leave a comment:


  • ASB
    started a topic RegistryKey.SetValue atomic or not.

    RegistryKey.SetValue atomic or not.

    I've been trying to discover if this is atomic or not. I need some certainty for durability over a power fail.

    So, if I set a value in the registry with this, and the method returns, is it guaranteed that it is flushed (i.e. I will retrieve this value on a restart after a power fail?)

    Still searching the 10 zillion hits I get.
Working...
X