完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨Barrie,>有没有办法让Vee监控内存状态,这样可以在出现问题时发出操作系统关闭并重启应用程序的信息?使用来自Kernel32.dll:void __stdcall GlobalMemoryStatus(int * MEMORYSTATUS)
具有以下结构映射到Int32数组(大小为8):公共类型MEMORYSTATUS dwLength作为长dwMemoryLoad作为长dwTotalPhys作为长dwAvailPhys作为长dwTotalPageFile作为长dwAvailPageFile作为长dwTotalVirtual作为长dwAvailVirtual作为LongEnd类型可用虚拟内存是最后一个值( 你的结果是[7])Bytes.Hope它有帮助,Georg Nied Software-DevelopmentHansestr.7 - 51149科隆德国邮箱:info@gn-software.de---你目前订阅了vrf:r*** @ soco。 agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。发送 发送到此邮件列表的邮件,请发送电子邮件至“vrf@it.lists.it.agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 Hi Barrie, > Is there a way for Vee to monitor memory status, which would allow > signaling the operating system to shutdown and restart the application > when there is a problem? Use from Kernel32.dll: void __stdcall GlobalMemoryStatus (int *MEMORYSTATUS) with the following structure mapped to an Int32 array (size 8): Public Type MEMORYSTATUS dwLength As Long dwMemoryLoad As Long dwTotalPhys As Long dwAvailPhys As Long dwTotalPageFile As Long dwAvailPageFile As Long dwTotalVirtual As Long dwAvailVirtual As Long End Type The available virtual memory is the last value (A[7]) of your result array in Bytes. Hope it helps, Georg Nied Software-Development Hansestr.7 - 51149 Cologne Germany Mail: info@gn-software.de --- You are currently subscribed to vrf as: r***@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@it.lists.it.agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
相关推荐
1个回答
|
|
我知道,我知道 - 不应该有错误。
但是,我确信某些条件几乎无法预测,因此错误检查是处理它们的最佳方式。 不幸的是,我的应用程序在几个月内无人值守,每秒一次的错误传入数据将导致问题。 我正在看一个Vee“低虚拟内存 - 关闭applicationIMMEDIATELY”消息,我认为这是持久性错误的结果。有一种方法让Vee监视内存状态,这将允许操作系统关闭并重新启动应用程序 有问题吗?Barriewhoi ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅发送一个 空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@it.lists.it.agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 I know, I know - there shouldn't be errors. However, I'm convinced that some conditions are nearly impossible to predict and therefore an error check is the best way handle them. Unfortunately, my applications run unattended for months and bad incoming data once a second will cause a problem. I'm looking at a Vee "Low virtual memory - close application IMMEDIATELY" message, which I assume is the result of a persistent error. Is there a way for Vee to monitor memory status, which would allow signaling the operating system to shutdown and restart the application when there is a problem? Barrie whoi --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@it.lists.it.agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
|
|
只有小组成员才能发言,加入小组>>
1283 浏览 0 评论
2371 浏览 1 评论
2189 浏览 1 评论
2062 浏览 5 评论
2946 浏览 3 评论
1104浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
751浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
922浏览 0评论
1284浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 21:57 , Processed in 1.949971 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号