要调试浏览器的插件(BHO),常见的方法是先设置下面的注册表值:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"TabProcGrowth"=dword:00000000

但是在64bit系统下的Internet Explorer 10中,设置TabProcGrowth=0之后会导致浏览器的32bit插件(BHO)不能加载。
详见:http://support.microsoft.com/kb/2716529/en-us

要单步调试时,只能编译为64bit版本了。

TabProcGrowth的作用详解:

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

摘录如下:

HKCU\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:

  a) small: Maximum 5 tab processes in a logon session, requires 15 tabs to get the 3rd tab process.

  b) medium: Maximum 9 tab processes in a logon session, requires 17 tabs to get the 5th tab process.

  c) large: Maximum 16 tab processes in a logon session, requires 21 tabs to get the 9th tab process.

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:

  a) TabProcGrowth=0 : tabs and frames run within the same process; frames are not unified across MIC levels. 

  b) TabProcGrowth =1: all tabs for a given frame process run in a single tab process for a given MIC level.

  Note: On Terminal Server, the default value is the integer of 1.

  c) TabProcGrowth >1: multiple tab processes will be used to execute the tabs at a given MIC level for a single frame process. In general, new processes are created until the TabProcGrowth number is met, and then tabs are load balanced across the tab processes.

  Note: that the frame process is no longer allowed to execute at low-MIC. If this is attempted, the process will exit.


本文链接地址: 在IE10中调试BHO无法进入断点
http://qingfengju.com/index.asp?id=355

分类:Win32/C++ 查看次数:6894 发布时间:2013-10-31 10:26:29