在某些 Windows 计算机上,皮肤应用程序有时会失去皮肤。有什么想法吗?
我们正在开发一个皮肤应用程序,在vista/windows 7下,在某些机器上,皮肤应用程序有时会失去皮肤。 这是问题的示例,以及这是应用程序正常运行时的外观。
无论我们使用本机 Win32 API 还是使用 QT 进行开发,这种情况都会发生在我们身上。它是自发发生的,没有任何事件可以解释它。顺便说一句,我们看到它有时会发生在其他一些应用程序中,
我们也通过每 2-3 秒重新绘制所有内容来解决它。但这是一个丑陋的黑客......
任何想法为什么会发生这种情况?
_非常_非常_感谢任何线索 -
Lior
we are developing a skinned application, and under vista/windows 7, on some machines, skinned applications sometimes loses their skin. here's an example for the problem, and here's how the application looks when it's good.
this happens to us whether we develop with native Win32 API or in QT. It happens spontanously, with no event that might explain it. btw, we see it happens sometimes to some other applications, too
we solve it by repainting everything every 2-3 seconds. but this is an ugly hack...
any ideas why this could happen?
thanks _very_much_ for any lead -
Lior
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在黑暗中拍摄,但听起来像是图形驱动程序问题。我会检查有问题的机器是否都具有相同的显卡或相同版本的图形驱动程序,以及这些机器上的驱动程序集合与正常机器的比较情况。
Shot in the dark, but it sounds like a graphics driver problem. I'd check whether the problematic machines all have the same graphics card or the same version of the graphics driver, and how the driver collection on those machines compares with the OK ones.
在黑暗中拍摄#2:您的 GDI 资源即将耗尽,因为您的应用程序(或在同一台计算机上运行的另一个应用程序)正在泄漏 GDI 句柄。
自从我不得不使用任何工具来检测“GDI 句柄泄漏”(Google 或 Bing)以来,已经有一段时间了。
以下是一些可供阅读的链接:
http://msdn.microsoft.com /en-us/magazine/cc301756.aspx
http://www.nirsoft. net/utils/gdi_handles.html
http://msdn.microsoft .com/en-us/magazine/cc188782.aspx
Shot in the dark #2: You're running out of GDI resources because your app (or another app running on the same machine) is leaking GDI handles.
It's been while since I've had to use any tools for detecting "GDI handle leaks" (Google or Bing on it).
Here's some links to go read up on:
http://msdn.microsoft.com/en-us/magazine/cc301756.aspx
http://www.nirsoft.net/utils/gdi_handles.html
http://msdn.microsoft.com/en-us/magazine/cc188782.aspx