Windows桌面应用程序在Windows更新后关闭时崩溃。 [英] Windows desktop application crashes while closing after windows update.

查看:84
本文介绍了Windows桌面应用程序在Windows更新后关闭时崩溃。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我更新了Windows补丁  KB4048957每月汇总。


之后我的应用程序在关闭时开始崩溃。我检查了日志,发现当调用了

FreeLibrary()函数时,应用程序崩溃了。 它试图取消注册所有dll并最终崩溃。


我使用应用程序验证程序捕获的最后一个语句是  

< avrf:trace> mfc120u!+ 6e7e8f33(@ 0)< / avrf:trace> 
< avrf:trace> mfc120u!+ 6e7e9155(@ 0)< / avrf:trace> ;< avrf:trace> mfc120u!+ 6e6e7e8e(@ 0)< / avrf:trace>
< avrf:trace> USER32!gapfnScSendMessage + 332(@ 0)< / avrf:跟踪>
< avrf:trace> USER32!GetThreadDesktop + d7(@ 0)< / avrf:trace>
< avrf:trace> USER32!CharPrevW + 138(@ 0)< / avrf:trace>
< avrf:trace> USER32!DispatchMessageW + f(@ 0)< / avrf:trace>
< avrf:trace> mfc120u!+ 6e7d86f2(@ 0)< / avrf:trace>

< avrf:trace> kernel32!BaseThreadInitThunk + 12(@ 0)< / avrf:trace>
< avrf:trace> ntdll!RtlInitializeExceptionChain + 63(@ 0)< / avrf:trace>
< avrf:trace> ntdll!RtlInitializeExceptionChain + 36(@ 0)< / avrf:trace>

但在其他操作系统中(win10)或Windows服务器)此问题不会发生。如果我们没有应用此补丁(即 KB4048957每月汇总),即使在win7上,也不会发生此问题。



有人可以帮助理解为什么它会因补丁而发生。

解决方案

你好,


因为你说它是特定Windows补丁的问题,你应该在Microsoft connect上发布你的问题:
http ://connect.microsoft.com/visualstudio


或者在Visual Studio中发送反馈(帮助 - >发送反馈 - >报告问题)。


问候,Guido



Recently i updated the windows patch KB4048957 Monthly Rollup.

After that my application start crashing while closing. I checked the logs and found that the application is crashing when 

FreeLibrary() function gets called.  It is trying to un-register all the dlls and at last it crashes.

The last statement i trapped using application verifier is  

<avrf:trace>mfc120u!+6e7e8f33 ( @ 0)</avrf:trace>
<avrf:trace>mfc120u!+6e7e9155 ( @ 0)</avrf:trace>
<avrf:trace>mfc120u!+6e6e7e8e ( @ 0)</avrf:trace>
<avrf:trace>USER32!gapfnScSendMessage+332 ( @ 0)</avrf:trace>
<avrf:trace>USER32!GetThreadDesktop+d7 ( @ 0)</avrf:trace>
<avrf:trace>USER32!CharPrevW+138 ( @ 0)</avrf:trace>
<avrf:trace>USER32!DispatchMessageW+f ( @ 0)</avrf:trace>
<avrf:trace>mfc120u!+6e7d86f2 ( @ 0)</avrf:trace>

<avrf:trace>kernel32!BaseThreadInitThunk+12 ( @ 0)</avrf:trace> <avrf:trace>ntdll!RtlInitializeExceptionChain+63 ( @ 0)</avrf:trace> <avrf:trace>ntdll!RtlInitializeExceptionChain+36 ( @ 0)</avrf:trace>

However in other OS(win10 or windows server) this issue doesn't occur. Even on win7 if we don't have this patch applied( KB4048957 Monthly Rollup), this issue doesn't happen.

Can somebody please help to understand why it occurring due to patch.

解决方案

Hello,

since you say it's a problem with a specific Windows patch, you should post your issue at Microsoft connect: http://connect.microsoft.com/visualstudio

Or send a feedback in your Visual Studio (Help -> Send Feedback -> Report a Problem).

Regards, Guido


这篇关于Windows桌面应用程序在Windows更新后关闭时崩溃。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆