Error control when accessing the Registry

  • Thread starter Thread starter David Schrader
  • Start date Start date
D

David Schrader

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
 
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]
 
Back
Top