运行时检查失败#2 - 变量'ps'周围的堆栈已损坏。 [英] Run-Time Check Failure #2 - Stack around the variable 'ps' was corrupted.

查看:774
本文介绍了运行时检查失败#2 - 变量'ps'周围的堆栈已损坏。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建我的组件代码(VC ++) 用"x64"表示配置选项。

I am building my componant code(VC++)  with "x64" configuration option .

当我运行我的项目时,一旦它从我的自定义 函数
" < span style ="font-size:small"> StatusBarProcessWmPaint " ,我收到错误" 运行时检查失败#2 - 变量'ps'周围的堆栈已损坏。"

When i was running my project ,once it come out from my custom function "StatusBarProcessWmPaint" ,i am getting the error "Run-Time Check Failure #2 - Stack around the variable 'ps' was corrupted."

以上函数包括以下语句。

PAINTSTRUCT ps; HDC hDC(BeginPaint(hwnd,& ps));

PAINTSTRUCT ps;HDC hDC(BeginPaint(hwnd, &ps));

请指导我如何解决上述错误?

Can Please guide me how to resolve the above error ?

使用"PAINTSTRUCT"时是否有任何问题在x64 配置,因为我没有遇到"Win32"的任何问题配置选项。

Is there any issue while using "PAINTSTRUCT " in x64  configuration,Since i dont face any problem with "Win32" configuration option.

推荐答案

嗨Sreenath。

Hi Sreenath.

此论坛适用于Microsoft Sync Framework相关的问题。您正在使用Sync Framework构建的组件是什么?

This forum is for issues related so Microsoft Sync Framework. Is the component you are building using Sync Framework?

如果没有,您可以将您的问题发布在另一个与您的环境无关的论坛帖子中。

If not, you might post your issue on another forum thread, which relates closed to your environment.

Adrian


这篇关于运行时检查失败#2 - 变量'ps'周围的堆栈已损坏。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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