How to read Registry

You are trying to create the Oracle registry key which is being blocked. You should change the TRUE to FALSE. Then the registryaccesserrorexception will fire if you don’t have the oracle key.

When debugging the IDE will stop on the reg = line anyway, but you can resume to see the exception handling or you can put
#Pragma BreakOnEception Off
before the Try line to see exception handling as if it were runtime.