|
-
Nov 3rd, 2011, 02:24 PM
#1
Re: Registry Key Exists
Delete the key on your PC [or at least change the name] and run the code and step through to see what actually happens. See if r4 actually is Nothing.
-
Nov 3rd, 2011, 02:33 PM
#2
Re: Registry Key Exists
 Originally Posted by formlesstree4
Delete the key on your PC [or at least change the name] and run the code and step through to see what actually happens. See if r4 actually is Nothing.
Thanks for the advice, formless.
It turns out I'm an idiot 
There's two methods I created and I forgot about the other. They have the same names except the suffix for each is different. One method returns a string, the other returns a boolean.
When I read the error log, I only read the first part and assumed it was this method. After changing the key name and seeing that the code never got to my break point, I realized it was the other method. The other method didn't have a check to determine if the key was nothing.
Everything's good now.
Thanks again.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|