检查失败#2堆栈变量 [英] Check Failure #2 stack around a variable

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

问题描述

我在名为value的变量周围出现此错误在一个54000行(DLL)的巨大代码中,我无法调试它


我的代码中有超过100个不同的值声明。所以我想知道如何调试我的代码!!?

我已经完成了VS2005提供的经典选项,其中我将客户端引用到我的应用程序,这是一个COM服务器但客户端没看到新的DLL !!!


如果您有任何想法或解决方案的开头,请不要犹豫回复!!!

I have this error around a variable named "value" in a huge code of 54000 lines (DLL)and I cannot debug it

I have in my code more than 100 different declarations of "value" so I want to know how to debug my code!!?

I have done the classic option offered by VS2005 where I reference a client to my application which is a COM server but the client doesn''t see the new DLL!!!

please if u have any idea or a beginning of a solution don''t hesitate to reply!!!

推荐答案


我在名为value的变量周围出现此错误在一个54000行(DLL)的巨大代码中,我无法调试它


我的代码中有超过100个不同的值声明。所以我想知道如何调试我的代码!!?

我已经完成了VS2005提供的经典选项,其中我将客户端引用到我的应用程序,这是一个COM服务器但客户端没看到新的DLL !!!


如果你有任何想法或解决方案的开头,请不要犹豫回复!!!
I have this error around a variable named "value" in a huge code of 54000 lines (DLL)and I cannot debug it

I have in my code more than 100 different declarations of "value" so I want to know how to debug my code!!?

I have done the classic option offered by VS2005 where I reference a client to my application which is a COM server but the client doesn''t see the new DLL!!!

please if u have any idea or a beginning of a solution don''t hesitate to reply!!!



我不太了解你的代码,我通常从它周围的cout语句开始并导致它 - 包括我不看的变量。你可以找到一些非常有趣的东西,通过在每一行之后放置cout语句并打印出你的变量,很好地了解你的程序在做什么。

Not knowing too much about your code, I usually start with cout statements all around it and leading up to it - including variables I''m not looking at. You can find some pretty interesting things, get a very good idea of what your program is doing by putting cout statements after every line and printing out your variables.


我知道我的内容很好程序正在做但我无法找到价值


我应该调试我的项目


它是我独特的解决方案


但是如何!! :(
Thx I know very welle what my program is doing but I cannot locate the "value"

I should debug my project

it''s the unique solution I thnik

but how !! :(



我的代码中有100多个不同的值声明,所以我想知道如何调试我的代码!!?
I have in my code more than 100 different declarations of "value" so I want to know how to debug my code!!?



这就是你的问题。为什么你宣布它超过100次?为什么不宣布一次?


PS - 编译错误通常包括行号。这是它不喜欢的变种。

That''s your issue right there. Why are you declaring it over 100 times? Why not just declare it once?

PS - compiler errors usually include line numbers. That''s the variant it doesn''t like.


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

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