在Windows内存不足时显示通知的示例代码 [英] Sample Code to show a notification when windows is running out of memory

查看:129
本文介绍了在Windows内存不足时显示通知的示例代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我想编写一个示例应用程序,以在计算机中没有足够的内存时向用户显示"Windows内存不足,删除日志文件"通知.

问候,
Pavan

Dear All,

I want to write a sample application to show a notification to the user "Windows is running out of memory delete the log files" when there is no sufficient memory in the machine.

Regards,
Pavan

推荐答案

http://channel9.msdn.com/coding4fun/articles/Creating-a-System-Monitor [ ^ ]


删除日志文件" ???这与内存无关,因此有点混乱.可能有磁盘空间,但没有内存.

另外,由于日志文件",您怎么知道呢?删除物理内存可能有很多错误,您将无法检测到那是什么.

内存不足"情况也可能是由于与内存完全无关的事情引起的,例如耗尽了句柄池...
"Delete the log files"?? That has nothing to do with memory, so it''s a bit confusing. Disk space, probably, but not memory.

Also, how do you know it''s because of the "log files"?? There can be any number of things that are going wrong to delete physical memory and you won''t be able to detect what that was.

"Low memory" situations can also be caused by things that have nothing to do with memory at all, such as exhausting the handle pool...


这篇关于在Windows内存不足时显示通知的示例代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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