jumper77
Member
Hi everyone... I have a routine that loops through processes and I'm using a try and catch block to catch exceptions. What I would like to find out is if there is a way to avoid the exception completely. I'm seeing a high cost in execution time because of all the exceptions. Here's the place in the code where the exception occurs...
I'm pretty sure that most people have seen this firsthand. In my case I think all of the errors are "Access Denied". Is there any kind of check that I can do to avoid this altogether?
Thanks in advance!
VB.NET:
Dim file As String = p.MainModule.FileName
Thanks in advance!
Last edited: