Forum posts for iexplore.exe

Strange ProcessorAffinity issue with IEXPLORE.exe

I need to launch IE and set the affinity to a particular single CPU.
When running the following c# code, as expected notepad.exe is started and has it's affinity set to just cpu2, strangely iexplore.exe is started with its affinity set to just cpu0. No matter what I set ProcessorAffinity to iexplore.exe always goes to cpu0.

I have tested this on 4 core xp 32 bit and 4 core 2008 64 bit, both IE8.

using System;
using System.Diagnostics;
public id Launch
{

public static void Main(string[] args)
{
lauchWithAffinity('c:/windows/system32/notepad.exe');
lauchWithAffinity('c:/Program Files/Internet Explorer/IEXPLORE.EXE');
}
static void lauchWithAffinity(string exePath)
{
ProcessStartInfo start = new ProcessStartInfo();
start.FileName = exePath;
Process myProcess =Process.Start(start);
myProcess.ProcessorAffinity = (System.IntPtr)4; //3rd cpu aka cpu2
//http://msdn.microsoft.com/en-us/library/system.diagnostics.process.processoraffinity.aspx
}

}

View complete forum thread with replies

Other posts related to iexplore.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can I find programatically where iexplore.exe is?
Strange ProcessorAffinity issue with IEXPLORE.exe
iexplore.exe process opens but I can't see it
Batch file to terminate all instances of IExplore.exe
Debugging SHDocVw.InternetExplorer.Quit not closing iexplore.exe process
Process.Start(“IExplore.exe”); <— Is this reliable?
VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed
How to capture keystrokes of iexplore.exe only?
Process.Start(“IEXPLORE.EXE”) immediately fires the Exited event after launch.. why?
Unhandled exception at 0x75619617 (KernelBase.dll) in iexplore.exe
Process.Kill does not seem to work with iexplore.exe
invoke iexplore.exe in already launched instance using ShellExecuteEx
Run iexplore.exe invisibly
Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed
Can I pass the -f parameter to iexplore.exe when using Watir?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.