适用于64位应用程序的64位Vista中的SetPixel错误 [英] SetPixel bug in 64-bit Vista for 64-bit applications

查看:105
本文介绍了适用于64位应用程序的64位Vista中的SetPixel错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SetPixel无法在64位Vista上用于64位进程.
可以使用以下伪代码进行复制:

//这样可以绘制水平线并可以正常工作;
dc.MoveTo(0,0);
dc.LineTo(1000,0);

//这应该是一样的,但是会产生虚线;
int x = 0; x< 1000; x ++){
dc.SetPixel(x,0);
}

有趣的是,一个32位应用程序在x64 Vista上执行此操作可以正常工作并且正确绘制了两条线.
只有64位应用程序使用SetPixel循环生成虚线.

在我的情况下,DC是 CS_OWNDC,并且我正在使用 MM_ANISOTROPIC映射.

在哪里向Microsoft报告这些内容?

SetPixel does not work properly on 64-bit Vista for 64-bit processes.
It can be reproduced with this pseudo code:

// this paints a horizontal line and works fine;
dc.MoveTo(0, 0);
dc.LineTo(1000,0);

// this should do the same, but produces a dashed line;
for (int x = 0; x < 1000; x++) {
    dc.SetPixel(x,0);
}

The funny thing is that a 32-bit application doing this on x64 Vista works fine and both lines are properly drawn.
Only a 64-bit application produces the dashed line using the SetPixel loop.

It may be relevant that in my case the DC is a CS_OWNDC and that I am using MM_ANISOTROPIC mapping.

Where to report these things to Microsoft?

推荐答案

我能够在Vista64计算机上重复您的错误,但前提是正在运行Aero Basic.在Aero Glass下,SetPixel运行良好.您要在哪跑?没有尝试使用32位应用程序,只是尝试了x64应用程序.

就报告错误而言,祝您好运.如果您使用的是Windows 7,则可以在此处进行报告,但是只有在Windows 7游戏玩家社区(对不起-Beta社区)对此进行了投票时,它才会被查看.

这类似于在以下线程中报告了一个长期存在的Vista问题:
I was able to repeat your bug on Vista64 computer, but only if Aero Basic is running. Under Aero Glass the SetPixel worked fine. Which are you running? Didn't try a 32 bit app, just an x64 app.

As far as reporting bugs, good luck. If you have Windows 7, you may be able to report it there, but it will only get looked at if enough of the Windows 7 gamer community (sorry - beta community) votes for it.

This is similar to a long-standing Vista issue reported in the following thread:
http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/9100f5cc-dbc9-4b4a-a46f-23c434d76e87/


这篇关于适用于64位应用程序的64位Vista中的SetPixel错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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