在双显示器上运行屏幕保护程序时发生内存泄漏 [英] Memory leak when running screensaver on dual monitors

查看:150
本文介绍了在双显示器上运行屏幕保护程序时发生内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次在这些论坛上提问,所以我希望我在正确的位置.

Hi Its the first time i ask a question on these forums, so i hope im in the right place.

我有一个应用程序,它显示从我的作品tfs服务器获得的项目构建,输出是一个屏幕保护程序,该屏幕保护程序在可用的情况下在双显示器上运行,该应用程序的开发是在运行Windows7的我的PC上完成的,它可以完美地运行没有记忆 双显示器泄漏.它应在其上运行的目标PC具有Windows XP SP3,当屏幕保护程序在一台显示器上运行时,它可以平稳运行,但是,一旦我将其更改为双显示器,我就会发现内存泄漏的发生以及每次应用程序更新时它会迅速增长 来自tfs的构建状态.我还应该提到,我的应用程序会产生两个输出,一个是exe,另一个是屏幕保护程序文件,此问题仅在屏幕保护程序中发生.如果有人知道如何解决此问题,或者为什么会这样,我将不胜感激 它.

I have an app that displays project builds obtained from my my works tfs server, the output is a screensaver that runs on dual monitors when available, the development of this app was made on my pc which runs on windows7, it runs perfectly with no memory leaks on dual monitors. The target pc that it should run on has windows xp sp3, when the screensaver runs on one monitor it runs smoothly however once i change it to dual monitors i noticed a memory leak develops and it grows rapidly everytime the app updates the status of the builds from tfs. I should also mention that my app produces two outputs an exe and a screensaver file, and this problem occurs only with the screensaver. If anyone knows how to fix this, or why it behaves this way, i would greatly appreciate it.

注意:需要屏幕保护程序,因为它可以锁定对目标PC的访问,并且需要双监视器,因为必须正确显示六个项目,并且每个屏幕上必须包含三个项目.

Note: screensaver is needed because it locks access to the target pc, and dual monitor is needed because six projects have to be displayed properly with three project builds on each screen.

推荐答案

嗨Araad,

Hi Araad,

 

我遇到了同样的问题,我使用.NET和WPF构建了一个屏幕保护程序,但我似乎无法通过运行exe并在一个屏幕上(但在多个屏幕上)监视内存使用来使它正常运行-monitor设置像疯了似的泄漏!

I'm having the same problem, I built a screensaver using .NET and WPF and I can't seem to get it to go wrong by running the exe and monitoring the memory usage on a single screen, but on a multi-monitor setup it leaks like crazy!

明天我将尝试对有问题的实际设置进行内存分析,我只是想知道您是否已找到问题?

I'm gonna try and do a memory analysis on the actual setup with a problem tomorrow, I was just wondering if you had found the problem?

 

欢呼

 

Ed

 


这篇关于在双显示器上运行屏幕保护程序时发生内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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