运行时检查失败#0 .... [英] Run-Time Check Failure #0 ....

查看:58
本文介绍了运行时检查失败#0 ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误消息:


运行时检查失败#0 - 在函数调用中正确保存ESP的值不是

。这通常是一个调用一个函数声明的函数的结果,该函数调用

约定,函数指针用

不同的调用约定声明。 br />

这个错误有几个答案,但我的情况

是不同的。我收到此错误的地方是

WaitForSingleObject()。这是内置功能,我可以用这个怎么回事?


谢谢,


zhong

解决方案

Hello Zhong,


感谢您在小组中发帖。


目前我正在寻找可以帮助你的人。我们将在这里回复

,并尽快提供更多信息。如果您对此有任何疑问,请随时在此处发布。


祝你好运,

Yanhong Huang

微软社区支持


安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有赋予任何权利。


" zhong" < ZH ************* @ tek.com>在消息中写道

news:04 **************************** @ phx.gbl ... < blockquote class =post_quotes>错误消息:

运行时检查失败#0 - 在函数调用中没有正确保存ESP的值。这通常是调用一个函数声明的函数的结果,该函数使用一个用不同的调用约定声明的函数指针调用
约定。

有几个答案这个错误,但我的情况不同。我收到此错误的地方是在WaitForSingleObject()。这是内置函数,我怎么能解决这个问题呢?
zhong




很难说。但是你是否可以在一个使用

不同的调用约定而不是MS约定的dll中调用函数?


Tom。


嗨zhongsheng,


感谢您使用Microsoft MSDN管理新闻组。我的名字是加里,我将在这个问题上帮助你。


首先,我想确认一下我对你的问题的理解。


从您的描述中,我了解到您的运行时检查失败

#0"当你的程序运行步骤进入WaitForSingleObject()API调用。

我完全理解你了吗?如果有什么我误解的话,请

随时告诉我。


根据我的经验,如果你的程序没有明确的话函数

指向一个不同的调用约定函数的指针,也许它是
将是Tom在上面的帖子中所描述的情况。


但是,如果没有关于您的计划的进一步信息,我们无法确切地找出问题。请帮我收集更多

有关你的程序的信息,以便进一步排除故障,例如你的项目是什么类型的b $ b,程序调用一些DLL''功能,以及错误代码行的上下文是什么?

谢谢!


祝你好运,


Gary Chang

Microsoft在线合作伙伴支持


安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有赋予任何权利。

--------------------


Error Message:

Run-Time Check Failure #0 - The value of ESP was not
properly saved across a function call. This is usually a
result of calling a function declared with one calling
convention with a function pointer declared with a
different calling convention.

There are several answers to this error, but my situation
is different. The place I get this error is at
WaitForSingleObject(). This is the builtin function, how
can I get around of this?

Thanks,

zhong

解决方案

Hello Zhong,

Thanks for posting in the group.

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible. If you have any more
concerns on it, please feel free to post here.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


"zhong" <zh*************@tek.com> wrote in message
news:04****************************@phx.gbl...

Error Message:

Run-Time Check Failure #0 - The value of ESP was not
properly saved across a function call. This is usually a
result of calling a function declared with one calling
convention with a function pointer declared with a
different calling convention.

There are several answers to this error, but my situation
is different. The place I get this error is at
WaitForSingleObject(). This is the builtin function, how
can I get around of this?
zhong



Hard to tell. But are you perhaps calling a function in a dll that uses
different calling conventions than MS conventions?

Tom.


Hi zhongsheng,

Thanks for using Microsoft MSDN Managed Newsgroup. My name is Gary, and I
will be assisting you on this issue.

First of all, I would like to confirm my understanding of your issue.

From your description, I understand that you get a "Run-Time Check Failure
#0" when your program run steps into WaitForSingleObject() API call.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Based on my experience, if your program don''t have an explicit function
pointer that points to a different calling convention function, maybe it
would be the situation which Tom figured in the above post.

However, without further information about your program, we have no ways
to find out the problem exactly. Would please help me collect more
information about your program for further troubleshooting, such as what''s
type of your project, do the program call some DLL''s function, and what''s
the context of the error code line....
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------


这篇关于运行时检查失败#0 ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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