Problem With GetCurrentProcess

m3122

New member
Joined
Apr 15, 2008
Messages
1
Programming Experience
Beginner
Hi All,
I am not a developer and am new to this but I am encountering an issue and would like to see if anyone has any thoughts or has seen this before.

I am running a simple VB.NET script and all it does is check to see if the same process is currently running and put up a message box:

MsgBox(Diagnostics.Process.GetCurrentProcess.ProcessName)

On one Windows XP machine, the script just hangs and never loads. I can see the process in TaskManager but the message box never appears. I run this on another Windows XP machine and it works fine.

Has anyone ever seen this or have any thoughts?

Thanks
 
I once had a problem with Diagnostics.Process class (and only that) with a XP computer that had the Performance Counter disabled because that system had crashed, never found a solution to fix it. It was .Net 1.1 too I think.
 
Back
Top