A
Alain Dekker
Is there any way to run builds in low priority on VS 2005 and later IDEs? In
VC++ 6 and VS 2003.NET, there was a separate process called vcspawn.exe was
launched. There was a way to hack the binary of the vcspawn.exe file so that
it was launched in low priority. This works very nicely.
With VS 2005, the IDE just runs one process called "devenv.exe" with lots of
threads. Presumably one of these threads is the compilation thread. Anyone
know of a way to hack devenv.exe so that when it launches the compilation
thread, it gets launched in low priority?
Problem I have is that VS 2005 is very slow. When you launch the build, my
project takes around 30s to build (at least) and the processor hugs 100% for
all of that time. During that time no "Windows.Invalidate" calls occur in
the IDE, causing screen whiteout for the IDE window and total
unresponsiveness from the IDE till the build has completed.
Related (and more annoying) is that because the OnUpdate handlers for the
"Cancel Build" does not getting any processing time, it neither gets a
chance to become enabled once the build has started, nor (if it could become
enabled) is it able to respond to mouse click events.
Hacking devenv.exe so that the build was only done in low priority might
help here.
Thanks,
Alain
VC++ 6 and VS 2003.NET, there was a separate process called vcspawn.exe was
launched. There was a way to hack the binary of the vcspawn.exe file so that
it was launched in low priority. This works very nicely.
With VS 2005, the IDE just runs one process called "devenv.exe" with lots of
threads. Presumably one of these threads is the compilation thread. Anyone
know of a way to hack devenv.exe so that when it launches the compilation
thread, it gets launched in low priority?
Problem I have is that VS 2005 is very slow. When you launch the build, my
project takes around 30s to build (at least) and the processor hugs 100% for
all of that time. During that time no "Windows.Invalidate" calls occur in
the IDE, causing screen whiteout for the IDE window and total
unresponsiveness from the IDE till the build has completed.
Related (and more annoying) is that because the OnUpdate handlers for the
"Cancel Build" does not getting any processing time, it neither gets a
chance to become enabled once the build has started, nor (if it could become
enabled) is it able to respond to mouse click events.
Hacking devenv.exe so that the build was only done in low priority might
help here.
Thanks,
Alain