lets see... taking more detailed look at the code gives...
"How the heck did I get an error here!?!" that comes from only one place in the code and really... I set that because... that code "should" not get an error. All that function does is figure out if it should echo a comment in the code to the log or not depending on the verbosity settings. It is literally one line. So I am guessing the error is actually being echoed from somewhere else after the fact but, not getting caught till this point.
"APInitialize.PrimaryInit() At Line 104 " should also not error out since it is just placing a "Starting Autopatcher From <directory> at <time/date>" in the log. ohh hmm... it is also doing it to the richtextbox. That requires RICHTX32.OCX.
I have not the slightest clue where it is giving error code 114.
here is another version. It will probably error out too but, has more error code in it as well as a fixed up section that was not supposed to let errors pass though like it did.
Run this and see if we get some different results in the error messages.