Vista Ultimate x64,Visual Studio 2005和VerQueryValue API [英] Vista Ultimate x64, Visual Studio 2005 and VerQueryValue API

查看:93
本文介绍了Vista Ultimate x64,Visual Studio 2005和VerQueryValue API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码在XP Pro 32,XP Pro 64,Windows Server 2003 32和Windows Server 2003 64上运行良好;在Vista Ultimate x64上出现故障

 

如果 (!VerQueryValue(buffer,spv, out versionInfo, out len))

该故障以对话框形式显示:vshost.exe停止工作(然后Vista停止收集更多信息).

它不是从函数调用中返回,而是输入并冻结(其他显示对话框).

请注意,这与MS文章中的代码几乎相同:

解决方案

我看到的是完全相同的行为(在Vista Ultimate 32上,所以不要认为这是32/4位问题).调试输出显示:

检测到严重错误c0000374

我发现,根据我的断点有时,这不会崩溃...

休,您是否在其他地方找到过解决方法?其他任何人都有想法或应该将话题切换到.Net论坛


Hi

The following code runs fine on XP Pro 32, XP Pro 64, Windows Server 2003 32 and Windows Server 2003 64; it faults on Vista Ultimate x64

 

if (!VerQueryValue(buffer, spv, out versionInfo, out len))

The failure manifests itself as a dialog saying: vshost.exe has stopped working (and then Vista goes off to collect more info).

It does not return from the function call, but enters it and freezes (other tha displaying the dialog).

Note this is pretty much the same code as in this MS article:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkUnsafeCodeTutorial.asp

It is the second call to VerQueryValue in example 3.

I cannot find the product bug/feedback center that I used for VS 2005 betas, I wanted to submit a report about Vista, but I cannot find any kind of Vista bug reporting center, hence I'm posting this here.

Do MS care if this is logged or followed up?

 

Rgds

Hugh

 

 

 

解决方案

I am seeing exactly the same behaviour ( am on Vista Ultimate 32 so don't think this is a 32/4 bit problem). Debug output shows:

Critical error detected c0000374

I find that depending on where my breakpoints are sometimes this doesn't crash...

Hugh did you ever find a fix elsewhere? Anyone else have an idea or should I switch the thread over to the .Net forums


这篇关于Vista Ultimate x64,Visual Studio 2005和VerQueryValue API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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