在program.exe中的第一次机会异常:0xC00000FD:堆栈溢出. [英] First-chance exception at in program.exe: 0xC00000FD: Stack overflow.

查看:100
本文介绍了在program.exe中的第一次机会异常:0xC00000FD:堆栈溢出.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
正如他们所说,一切都是第一次.

我有一些可以作为C ++运行的软件(不是点网,因为它也可以在unix/lunix上运行),并且可以正常工作12年.

我将其拆分并为客户端创建了新版本,并且该版本可以在Windows Server 2008和SQL Server 2008上运行,非常适合该客户.

现在,我们将其部署在Windows Server 2012R2和SQL Server 2014上,当我尝试启动其中一个程序时,在VS 2010中收到以下消息.最大的是调度程序.

现在是的,我确实知道异常和堆栈溢出是什么.我从1982年开始写代码.

我不知所措的是,当我运行的8GB测试机是我通常开发的2倍的测试机时,如何可能会出现堆栈溢出.我一直在寻找寻找可能是什么的方法 罪魁祸首以及如何找到并修复它.其他在启动时分配几乎相同空间的程序正在新的dev计算机上工作.

另一个非常相似的调度程序版本也可以启动.

所以我想我真正的问题是,我是否有一段代码可以在其他平台上运行,并且在VS 2010中运行时,突然在SQL Server 2012R2和SQL Server 2014上出现堆栈溢出?
从哪里开始寻找解决这个问题的方法?

另外....我曾尝试在VS2010之外在x64和win32中运行它,在这些情况下,当它尝试连接到ODBC驱动程序时会得到APPCRASH.但是另一个使用链接到数据库的所有相同类的程序可以正常卸载表.

这些是IDE给予我的消息....如果,当然,如果程序无法启动,则在对main的调用中会出现堆栈溢出.

BIDAU008.exe中0x00007ff7bcceea97的第一次机会异常:0xC00000FD:堆栈溢出.
BIDAU008.exe中0x00007ff7bcceea97的未处理异常:0xC00000FD:堆栈溢出.
程序"[10212] BIDAU008.exe:本机"已退出,代码为0(0x0).

因此,即使在我这样的年龄下,这也证明了这一点,即使在所有这些年之后,我们这些老程序员可能会有些困惑,问问是否有人以前见过此事,并且知道如何解决它.

预先感谢

Peter


彼得·诺兰(Peter Nolan)

解决方案

彼得,

所以您的意思是它是同一个项目,您使用相同的VS版本,只是更改了Windows系统和SQL Server版本,对吗?

我们很难通过示例来解决此问题,但是我的想法是,您可以使用一种不同的条件对其进行测试,因此我们可以逐一缩小此问题的范围,例如,使用不同的Windows系统,但是使用相同的SQL Server版本(SQL Server 2008).

最好的问候,

Jack


Hi Guys,
as they say, there is a first time for everything. 

I have some software that runs as C++ (not dot net as it runs on unix/lunix as well) and has been working fine for 12 years.

I split it and created a new version of it for a client and that runs on Windows Server 2008 and SQL Server 2008 just fine for that customer.

Now we are deploying it on windows server 2012R2 and SQL Server 2014 and I get the following message in VS 2010 when I try to start one of the programs. The biggest one which is a scheduler.

Now yes, I do know what an exception and a stack overflow is. I have been writing code since 1982.

What I am at a bit of a loss to understand is how I could possibly be getting a stack overflow when I have an 8GB test machine I am running on which is 2x the machine I usually develop on. I have been hunting around looking for ways of finding what might be the culprit and how to find it and fix it. Other programs that allocate pretty much the same space at startup are working on the new dev machine.

And another version of the scheduler which is very similar starts ok.

So I guess my real question is if I have a piece of code that works on other platforms and it suddenly gets a stack overflow on SQL Server 2012R2 with SQL Server 2014 when run inside VS 2010? 

Where to start looking to solve this problem?

Also....I have tried running it in both x64 and win32 outside VS2010 and in these cases is it getting an APPCRASH when it tries to connect to the ODBC driver. But another program that uses all the same classes that links to the database can unload tables ok.

These are the messages the IDE is giving me....and, if course, the program does not start, it gets a stack overflow on the call to main.

First-chance exception at 0x00007ff7bcceea97 in BIDAU008.exe: 0xC00000FD: Stack overflow.
Unhandled exception at 0x00007ff7bcceea97 in BIDAU008.exe: 0xC00000FD: Stack overflow.
The program '[10212] BIDAU008.exe: Native' has exited with code 0 (0x0).

So, this just goes to prove even at my age and even after all these years us old programmers can be a bit stumped and ask if anyone has seen this before and knows how to fix it.

Thanks in advance

Peter 


Peter Nolan

解决方案

Hi Peter,

So you mean that it is the same project, you use the same VS version, just changed the Windows system and the SQL Server version, am I right?

No sample is hard for us to repro this issue, but my idea is that you could test it using one different condition,so we could narrow down this issue one by one, for example, using the different windows system, but use the same SQL Server version(SQL Server 2008).

Best Regards,

Jack


这篇关于在program.exe中的第一次机会异常:0xC00000FD:堆栈溢出.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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