主要就是修改注册表键值使IE不创建多个进程:HKLM\Software\Microsoft\Internet Explorer\Main - TabProcGrowth
但需要注意的是这种情况下,vs2008下debug会变卡,不知道神马原因。
1. 调整IE tab process growth:
修改注册表键值:HKLM\Software\Microsoft\Internet Explorer\Main - TabProcGrowth (string or dword)
Tab Process Growth : Sets the rate at which IE creates New Tab processes. There are two algorithms used by Internet Explorer.
1. Context-based: By default, the context-based algorithm is used and the curve is chosen based on the amount of physical memory on the machine. In addition, the TabProcGrowth string registry value may be manually forced to:
2. The "Max-Number" algorithm: This specifies the maximum number of tab processes that may be executed for a single isolation session for a single frame process at a specific mandatory integrity level (MIC). Relative values are:
Note: On Terminal Server, the default value is the integer of 1.
Note: that the frame process is no longer allowed to execute at low-MIC. If this is attempted, the process will exit.
参考:
http://blogs.msdn.com/b/askie/archive/2009/03/09/opening-a-new-tab-may-launch-a-new-process-with-internet-explorer-8-0.aspx
2. 设置Project属性中debugging为:C:\Program Files (x86)\Internet Explorer\iexplore.exe