|
[求助]2个窗口,在不同线程,父子关系,如果一个线程无限Sleep,另一线程也会死掉?
你说的窗口在自己的线程GetMessage是没错的,只取自己的,但你没有考虑到窗口有父子关系后,它们可能会进行一些交互,就会卡死, 假设有:父窗口重置位置时,可能需要通知子窗口,但子窗口已死,不返回,父窗口就可能会死 如果不信,自己可以写个简单的demo试试,很简单,把子窗口线程sleep掉就行了。 |
|
[求助]2个窗口,在不同线程,父子关系,如果一个线程无限Sleep,另一线程也会死掉?
错也,这个问题根本没解,2楼也应该没有理解到窗口之间关系的本质 我2个窗口确实在不同线程,但事实是子窗口线程卡死后,父窗口也会跟着死,2楼却说不会死,与事实相悖 |
|
|
|
[求助]2个窗口,在不同线程,父子关系,如果一个线程无限Sleep,另一线程也会死掉?
我是有意死锁的,我主要是想问问,子窗口所在线程死后,有没有办法保证父窗口不死 |
|
[求助]2个窗口,在不同线程,父子关系,如果一个线程无限Sleep,另一线程也会死掉?
问题是父窗口的一些动作可能需要与子窗口交互,子窗口死,它就跟着死了。 |
|
[讨论]VC中对ZeroMemory定义为memset了,如何调用真正的ZeroMemory?
谢谢,重定义一次可行,就是要多写几行代码而已 |
|
[讨论]VC中对ZeroMemory定义为memset了,如何调用真正的ZeroMemory?
有现在的API不用,自己写干嘛,我为了减小依赖与体积 |
|
[转帖]仅用U盘就可以去除XP管理员密码
明显没必要,网上有工具能直接修改密码,U盘启动后直接运行那工具,就可改掉密码了, 有必要替换文件后再这么折腾来改密码吗? 真正需要的还是能提取密码原文,或者在系统锁定下直接进入系统,而不是去修改人家的密码, 因为人家会知道密码被改了!! |
|
[求助]如何HOOK加载DLL时静态加载的DLL函数?
谢谢楼上各位 |
|
[求助]如何HOOK加载DLL时静态加载的DLL函数?
主要是原理和机制问题,与代码无关吧,就是HOOK LoadLibrary嘛 |
|
[求助]VC开发环境在调试时,能把任何GUID或IID转换为它的名字,是怎么做的?
对于CLSID的话,应该是注册表扫描,但不知道是否有现在的函数给程序用,省得每人都要自己写代码 但对于IID的话,就更不知道了 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值