M
Michi Henning
Hi,
the following statement takes around 1 second (!) to execute on my machine:
string progName = Process.GetCurrentProcess().ProcessName;
Why is this so terribly slow? This is a major pain for me because
the program is invoked repeatedly as part of a build environment.
The upshot is that it takes 30 seconds what otherwise takes about
2 seconds :-(
Is there another way to get the name of the process that is faster?
All I'm really looking for is the equivalent of argv[0] in C/C++.
Thanks,
Michi.
the following statement takes around 1 second (!) to execute on my machine:
string progName = Process.GetCurrentProcess().ProcessName;
Why is this so terribly slow? This is a major pain for me because
the program is invoked repeatedly as part of a build environment.
The upshot is that it takes 30 seconds what otherwise takes about
2 seconds :-(
Is there another way to get the name of the process that is faster?
All I'm really looking for is the equivalent of argv[0] in C/C++.
Thanks,
Michi.