如何增加 .Net 3.5 中 Web 服务的堆栈大小
我的网络服务中存在堆栈限制问题。 建议我阅读 这篇文章由本论坛的其他成员撰写,但我不知道如何运行 EDITBIN。
我在 Windows 7 (IIS7) 上使用 VS2008 谢谢!
I have an issue with the stack limit in my webservice.
I was suggested to read this article by fellow members of this forum, but I do not have an idea how to run the EDITBIN.
I am using VS2008 on Windows 7 (IIS7)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的堆栈耗尽,通常最好准确分析为什么您的堆栈耗尽并适当地更改您的设计。增加堆栈大小(无论是通过编程还是通过编辑二进制文件)通常仅意味着您可以处理更大的数据集以进行递归或类似的操作。
我强烈建议您在增加大小之前先弄清楚堆栈中发生了什么。您最终可能会迭代递归方法 - 或者您可能只是发现目前有一个错误。
If you're running out of stack, it's usually a good idea to analyse exactly why you're running out and change your design appropriately. Increasing the stack size (whether programmatically or by editing the binary) will usually just mean you can handle a larger data set to recurse through, or something similar.
I would strongly recommend that you work out exactly what's going on in your stack before increasing the size. You may end up making a recursive approach iterative - or you may just find you have a bug at the moment.