任务管理器中的WINWORD.exe太多 [英] Too many WINWORD.exe in task manager
本文介绍了任务管理器中的WINWORD.exe太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我使用Microsoft.Office.Interop.Word;创建Microsoft Word文件.
但是,在我关闭我的应用程序之后.任务管理器中运行着许多WINWORD.exe.
我尝试使用Application.Quit,Marshal.ReleaseComObject()和
Hi all,
I use Microsoft.Office.Interop.Word; to create a Microsoft Word file.
But after I close my application. There are many WINWORD.exe run in task manager.
I tried to use Application.Quit, use Marshal.ReleaseComObject(), and
GC.Collect(); GC.WaitForPendingFinalizers();
,但无法解决我的问题.
我该如何处理?
在此先感谢您的帮助.
:)
问候,
but it can''t solve my problem.
How can I handle it?
Thanks in advance for any help.
:)
Regards,
推荐答案
调用quit时,应用程序应正常退出.几件事要检查:
-确保该应用程序可见,以便查看是否弹出任何对话框
-如果您对文档进行了更改,请先保存或丢弃
您还可以连接ApplicationEvents2_Event_Quit事件以查看是否正确接收到退出.
Hi,
The application should exit nicely when quit is called. Few things to check:
- ensure that the application is visible in order to see if any dialogs pop up
- if you have made changes to the document either save them first or discard
You can also wire the ApplicationEvents2_Event_Quit event to see that the quit is received correctly.
尝试保存PID并使用Process.Kill和您的PID杀死进程WINWORD.EXE,''已保存.
Try to save the PID and kill the proccess WINWORD.EXE with Process.Kill, and the PID you''ve saved.
这篇关于任务管理器中的WINWORD.exe太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文