我“堆栈空间不足”当我运行报告两次时使用crystl32.ocx / vbasic 5
前几次我运行报告,它打印正常,但是当我尝试卸载正在运行它的表单时,我收到“堆栈空间不足”错误 28,并且程序因该错误而终止。
详细信息指出问题是crystl32.ocx 版本4.6.1.0 造成的。
报表关闭时如何释放堆栈空间??????
The first several times I run the report it prints OK but when I try to UnLoad the form that's running it I get 'Out of Stack Space' error 28 and the program terminates with that error.
The details point to to crystl32.ocx version 4.6.1.0 as the problem.
How can I release stack space when the report is closed???????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不太熟悉该版本的 Crystal Report 控件,但是该控件是否有
Reset()
方法?如果不进行重置,您就不会告诉控件释放为打印报告而分配的任何资源。I'm not all that familiar with that version of the Crystal Report control, but does the control have a
Reset()
method? Without resetting, you're not telling the control to release any resources allocated for the printing of a report.嗯,当我卸载表单时,我收到此错误,因此所有内容都应该被释放。
我发现如果我一次只打开一张表格,我就不会遇到这个问题。
我猜这些报告只是使用了太多的资源……不过,如果能打开 2 个报告就好了。我可以多次运行同一个报告并保持打开状态,但不能运行 2 个不同的报告
Well I get this error when I Unload the form so everything should be released then.
I have found out that If I only have one form open at a time I do not have this problem.
I guess the reports just use too many resources .... Would be nice to have 2 reports open though. I can run the same report many times and keep them open but not 2 different reports