为什么 Visual Studio 2005 在升级 vcproj 文件时会更改 StackReserveSize?
我有一个非常旧的 C++ 应用程序,当我继承它时,它是用 Visual C++ 版本 7.0 构建的。当我将其带到 Visual Studio 2005 时,转换例程显然将 StackReserveSize 的值从“0”更改为“66112”。
如果它没有表现为调用 HtmlHelp 的堆栈溢出问题,我可能永远不会注意到此更改。每当使用帮助文件搜索功能时,程序就会溢出并崩溃。一旦我将 StackReserveSize 改回“0”,就不再出现堆栈溢出。
那么有谁知道为什么VS2005会改变这个值或者如果我把它改回“0”会产生什么影响?
I have a very old C++ application that was being built with Visual C++ Version 7.0 when I inherited it. When I brought it forward to Visual Studio 2005, the conversion routine apparently changed the value of StackReserveSize from "0" to "66112".
I probably never would have noticed this change if it had not manifested into stack overflow problems with calls to HtmlHelp. The program would overflow and crash everything whenever the help file search function was used. Once I changed the StackReserveSize back to "0", no more stack overflows.
So does anyone know why VS2005 would change this value or what implications might arise if I change it back to "0"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论