StackoverflowException 仅在发布模式下?
我在 Windows Server 2008 R2 上安装了 VS2010,并启动了一个 Winforms 应用程序,该应用程序对部署在另一台计算机上的服务进行异步 WCF 调用,以获取相当大的对象图(XML 中约为 25 Mb)。
当我在 VS2010 中以调试模式启动时(调试->启动新实例),它工作正常。
当我在 VS2010 中以发布模式启动(调试->启动新实例)时,它会因软堆栈溢出异常而崩溃,我没有调用堆栈,但我怀疑底层 XML 的反序列化。
有什么想法会发生这种情况吗?
I installed VS2010 on Windows server 2008 R2 and started a Winforms app that makes an asynchronous WCF call for a rather big object graph (~25 Mb in XML) to services deployed on another machine.
When I start in debug-mode in VS2010 (debug->start new instance) it works fine.
When I start in release-mode in VS2010 (debug->start new instance) it crashes with a soft stackoverflow exception, I have no callstack but I suspect the deserialisation of underlying XML.
Any ideas how this may occur?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试增加 WCF 配置文件中的最大消息大小缓冲区。
Try increasing the maximum message size buffers in the WCF config file.