Howdy,
So, running a little app that iterates through the registry I inevitably 
ran into RegistryAccessErrorException. I figured "hey, this is a job for 
try!" and used this code here-

    try
      mySearch = new RegistryItem(currHive, false)
    Catch err As RegistryAccessErrorException
      mySearch = Nil
    end try
    if mySearch <> Nil Then
     
     
      for j = 0 to mySearch.FolderCount - 1
        try
          tmpString = mySearch.Item(j).Path <----This is where the 
exception is being raised.
        Catch err As RegistryAccessErrorException
          tmpString = ""
        end try
        if tmpString <> "" Then
          tStrArray = Split(tmpString, "\")
          addRow
          popRow(tStrArray.Pop, "testing")
        end if
       
      Next
     
     
    end if

But when I run the app I still get the error in an unhandled way, 
causing the IDE to halt the app. I can just tell I'm misunderstanding 
something here. Can anyone enlighten me?

Thanks,
Fargo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to