03 2014 档案
摘要:1、创建一个Visual C++的Empty Project,如果需要支持Windows XP将Platform Toolset设置为Visual Studio 2013 - Windows XP (v120_xp)。2、Configuration Type设置为Dynamic Library (....
阅读全文
摘要:Windows Server 2012 + Hyper-V调试Windows XP SP3 32-bit虚拟机。1、Hyper-V选中虚拟机,设置COM port,Named pipe定义一个名字。例如:com_1。2、访问虚拟机,cmd输入msconfig修改boot.ini。高级选项(设置需要一一对应):1)/DEBUG2)/DEBUGPORT=COM13)/BAUDRATE=1152003、重启虚拟机,并打开Debugging Host的WinDbg。选择Kernel Debugging,在COM选项卡输入对应参数,开始进行调试。
阅读全文
摘要:Debugging Target:Windows XP SP3 32-bitDebugging Host:Windows Server 2012 64-bit当附加到目标服务器某个进程后,WinDbg x86(6.11.1.404)提示:unable to initialize target machine information win32 error 0n87这是一个旧版本已知的bug,更新WinDbg版本即可(具体在哪一个版本修复并不清楚,我使用Windows SDK 8.0自带的6.2.9200.16384版本)。
阅读全文
摘要:开发一个COM组件在Windows 7上注册成功,但是Windows XP SP3版本却导致regsvr32.exe进程挂起。用WinDbg查看发现提示:Break-in sent, waiting 30 seconds...WARNING: Break-in timed out, suspending. This is usually caused by another thread holding the loader lock竟然出现了加载锁,kb查看call stack:0:000> kbChildEBP RetAddr Args to Child ...
阅读全文