非常奇怪的视觉工作室行为,有过多的空白线条

发布于 2024-07-19 02:03:18 字数 261 浏览 3 评论 0原文

昨天我们更新了我们正在使用的一些中间件的新版本,并且遇到了一个非常奇怪的与 perforce 的合并问题...它在我的一个函数中创建了大约 10-20,000 行空白,这一切都编译得很好,运行程序它崩溃了,表明存在一些内存问题,通过调用堆栈回溯,我发现 Visual Studio 将调试器直接指向函数中间,该函数中有数千行空白,删除多余的行并重新编译修复这个问题,我只是想知道这是怎么回事?,代码没有区别,编译器应该忽略所有空白,这是 Visual Studio 中的某种错误吗?

谢谢

yesterday we updated to a new version of some middleware we are using, and had a very bizarre merge problem with perforce... it had created approximately 10-20 thousand lines of white space in one of my functions, this all compiled fine, upon running the program it crashed indicating some memory issue, tracing back through the call stack I discovered visual studio was pointing the debugger right into the middle of the function that had the thousands of lines of white space in it, deleting the excess lines and recompiling fixed this issue, I was just wondering how this is so?, there was no difference in the code and the compiler is supposed to ignore all white space, is this some kind of bug in visual studio?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撑一把青伞 2024-07-26 02:03:18

您确定它是空白而不是空白吗?

Are you sure it's white space and not Whitespace?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文