Re: Error control when accessing the Registry



On Jan 15, 9:35 am, "David Schrader" <schra...@xxxxxxxxxxx> wrote:
Hello all,

Let me start by saying that I'm not certain whether this belongs
here, in this notes group, or another more developmentally
oriented one. I'll try starting here then go elsewhere if you
decide otherwise. (Already forwarded here, sort-of, from:
microsoft.public.windowsnt.registry.)

I'm writing a Visual Basic program which stores and retrieves
data in the registry - no big thing, I've got all that code written
and it works fine. My problem is that I want to build this thing
as bullet-proof as possible.

My question is, does anyone have, or know the location of a
good example of using the "try/catch/finally/end_try" error
manipulation code (preferably related to accessing the registry
which I could pour over to get an idea of how to beef up the
stability of my code? (I've read all the stuff that I have been
able to find on "try/etc." and also on "error exemptions" but
none of them have any good examples or anything which could
easily be adapted.

Any help or pointers appreciated.

David

My question is:

What do you want to do if there is an error accessing the registry?

Thanks,

Seth Rowe [MVP]
.



Relevant Pages

  • Error control when accessing the Registry
    ... Let me start by saying that I'm not certain whether this belongs ... here, in this notes group, or another more developmentally ... data in the registry - no big thing, I've got all that code written ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Different Approaches to Saving settings: Which is better?
    ... Everything that affects the computer and belongs to that Registry, ... Everything that belongs to the application would in my opinion be set in the ... I need to have the properties of these windows to stay when the ... up so that it reads and writes from an xml file to handle all this. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: The connection problem
    ... Also let's not forget that not all software is written in java - a registry ... I'm not saying these problems can't be solved, but I think that once you've ... individual vendors of non-trivial services will already have ... > Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.programmer)
  • Re: regclean
    ... | I do not think that Will is saying that Win XP has a regclean built in. ... | I think he is saying is that you do not really need a regclean as windows XP ... | You must remember that what ever you do in the registry is none recoverable ...
    (microsoft.public.windowsxp.general)
  • Re: Registry Corrupt...
    ... Are you saying I need a copy of the registry and restore that? ... Dave Patrick ....Please no email replies - reply in newsgroup. ...
    (microsoft.public.win2000.setup)