473,395 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error control when accessing the Registry

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
Jan 15 '08 #1
1 1605
On Jan 15, 9:35 am, "David Schrader" <schra...@ucs.fsu.eduwrote:
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]
Jan 15 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manitoba98 | last post by:
I have been having trouble with controls in VB5 every since I got XP. I am not the administrator, and thus I cannot use OCXs or DLLs (except for API Calls, which work). When I try to add a new...
2
by: Wanda | last post by:
Hi there, I am getting a Error accessing the OLE registry when the system goes hit the following line set xWd = Server.CreateObject("Word.Application") in my asp? Anything I have to set-up...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
2
by: Ramesh | last post by:
hi, I have created COM when i try to use that instance in C#.net Wep application i am getting following error message. DBUsingCom is my Component name and BusinessObject as a Class name.can...
2
by: Chakkaradeep | last post by:
Hi all, heres my code, *******//////////////////////Starts Here////////////////////////////////////********* try { RegistryKey rKey =...
1
by: Jody Gelowitz | last post by:
This one should be relatively simple, though I have yet to figure it out. I have an ASP.NET project which uses LDAP authentication to login to the system. When run on our Development or Staging...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
7
by: Cogito | last post by:
I installed Office 2000 Professional onto a Windows Vista laptop and when I tried to compile the code the following error message appears: 'User-Defined type not defined' I went to check the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.