Click here to Skip to main content
15,916,951 members

Comments by jumper77 (Top 23 by date)

jumper77 13-Sep-17 12:09pm View    
Thank you for the reply. And yes, the exception occurs on the line you said (p.Modules(0).Filename). I tried your code suggestion and I get get the exception on "Dim x = p.Modules", if there is going to be an exception.

I apologize for my lack of understanding about what's going on with the code. Right now I can't think of anything else to try. I hope you might though :)
jumper77 13-Sep-17 11:26am View    
Thank you for the reply. But I think I may not have explained myself well. About the exception, it is always the same. Access Denied. That's the only exception. And if it's going to happen, it always occurs on the second line of the "Try" block.

I have no problem writing the files. The files are only written to show the results of trying to get the path to the exe in question.

I'm just trying to find out "why" I'm getting the access denied exception. I can use the try catch block to decide whether to add the item to the Listview.
jumper77 24-Jul-16 16:53pm View    
It figures... once I break down and ask for help, I figure out what's happening (and it's a dumb one). The form AutoSize was set to true. Once I set it to false, Everything works like a charm.

Sorry if you came here for no reason now
jumper77 16-Oct-15 17:49pm View    
More info: The exception always occurs at the NOP statement. The disassembly info from the NOP statement is: System.Windows.Forms.Control.SendMessage

I did check out the links, but it wasn't too much help (but thanks).
Once the programs compiles with no errors, it never has a runtime exception.

Also, sorry this is dragging out so much...
jumper77 16-Oct-15 17:13pm View    
I have where the error occurs in the disassembly window. But it's a NOP statement: 00000044 90 nop
Any idea what this might mean? Thanks