看流星社区

 找回密码
 注册账号
查看: 1995|回复: 1

[易语言源码] [开源]Win7 X64调试修复支持库

[复制链接]

该用户从未签到

发表于 2014-5-23 09:26:22 | 显示全部楼层 |阅读模式
易语言版本需求:5.11
详细说明:
修复X64系统下 易语言调试点停止后 进程不会关闭的问题

问题原因:
易语言是使用创建进程来调试的,但是他Terminate掉了进程,需要调用ContinueDebugEvent后才能CloseHandle,但是他并没有Continue就直接CloseHandle了,导致进程无法结束 挂死在那里……………………

以下摘自MSDN:
debug/base/waitfordebugevent.htm
When a CREATE_PROCESS_DEBUG_EVENT occurs, the debugger application receives ahandle to the image file of the process being debugged, a handle to the processbeing debugged, and a handle to the initial thread of the process being debuggedin the DEBUG_EVENT structure. The members these handles are returned inare u.CreateProcessInfo.hFile (image file),u.CreateProcessInfo.hProcess (process), andu.CreateProcessInfo.hThread (initial thread). If the system previouslyreported an EXIT_PROCESS_DEBUG_EVENT debugging event, the system closes thehandles to the process and thread when the debugger calls the ContinueDebugEvent function. Thedebugger should close the handle to the image file by calling the CloseHandle function.

丢支持库到易语言的lib目录,并且支持库配置打钩就行了~

游客,如果您要查看本帖隐藏内容请回复

该用户从未签到

发表于 2014-5-23 17:35:12 | 显示全部楼层
谢谢楼主分享 ~~
点击按钮快速添加回复内容: 支持 高兴 激动 给力 加油 苦寻 生气 回帖 路过 感恩
您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

小黑屋|手机版|Archiver|看流星社区 |网站地图

GMT+8, 2024-5-20 02:39

Powered by Kanliuxing X3.4

© 2010-2019 kanliuxing.com

快速回复 返回顶部 返回列表