"红十字会"在MenuStrip中和ToolStrip的问题 [英] "Red Cross" problem on MenuStrip and ToolStrip

查看:277
本文介绍了"红十字会"在MenuStrip中和ToolStrip的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个软件已经能正常工作在很多机器上,althoughon一体机存在,似乎occasionaly出现问题,MenuStrip中和的ToolStrip都显示为空白的白色背景的红色叉它,一个自定义的控制,将您创建了一个空对象。这不会发生,而我调试,我不知道如何使这一问题再次出现,但它确实发生了。我想知道是否有人知道可能是什么问题?

I have a piece of software that has worked fine on many machines, althoughon one machine there is a problem that appears to occur occasionaly, the MenuStrip and the ToolStrip both appear as a blank white background with a red cross over it, as a custom control would if you created a null object. This doesn't happen whilst I am debugging and I don't know how to make the problem re-occur, but it does happen. I was wondering if anyone knew what could be the problem?

难道是在.NET框架的版本?

Would it be the version of the .NET framework?

感谢

推荐答案

这是司空见惯的事情时,有一个GDI +问题(死亡红X)。你在做的OnPaint 的任何自定义绘制?或者,也许有一个图形资源或字形时已损坏或被处置不当

This is a common occurrence when there's a GDI+ problem ("The Red X of Death"). Are you doing any custom drawing in OnPaint? Or perhaps there's a graphic resource or a glyph which is corrupt or being improperly disposed of.

编辑:我重读你的问题。你似乎有这只是对机器之一。我GOOGLE了一下周围的这一点,我偶然发现的这个古老的线程。底部的职位表明,有可能与虚拟内存的问题关闭:

I've re-read your question. You seem to have this only on one of the machines. I've googled around a bit for this, and I stumbled upon this old thread. The post at the bottom suggests that there might be an issue with Virtual Memory turned off:

我们还是设法解决这个问题 - 我们
看到嵌入式设备运行
XP的问题。该XPe的图像显影剂
已经关闭虚拟内存和
一旦我们把它的问题
就走了。我相信这是只是运行了
内存的系统中显示的图形(也许
特别是如果你使用了大量的
双缓冲)的
症状

We did manage to solve this - we were seeing the problem on a device running XP embedded. The XPe image developer had turned off Virtual Memory and as soon as we turned it on the problem went away. I believe it is just a symptom of the system running out of memory to display the graphics (maybe particularly if you use a lot of double buffering)

希望有所帮助。

这篇关于"红十字会"在MenuStrip中和ToolStrip的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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