时不时地,ABCpdf内存用完 [英] Every now and then, ABCpdf runs out of memory

查看:177
本文介绍了时不时地,ABCpdf内存用完的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用第三方组件来构建名为ABCpdf.Net一个VB.Net网络系统的动态PDF文件的项目。 (不是一个可怕的工具,但不是一个伟大的无论是。)

The project I'm on is using a 3rd party component to build dynamic PDFs in a VB.Net web system called ABCpdf.Net. (not a terrible tool, but not a great one either.)

然后每一个现在,至于原因我无法捉摸,文档对象抛出一个SEHException。挖futher,原来这是由在类型WebSupergoo.ABCpdf6.Internal.PDFException的文档对象的自定义异常。内容仅包含未-terribly-有益的标题无法获取图像数据。内存不足通常这种情况下试图将图像添加到PDF时。由于这些图像是小于100k的PNG图像,我猜它们的大小不是问题。

Every now and then, for reasons I can't fathom, the document object throws a SEHException. Digging futher, it turns out this is caused by a custom exception in the document object of the type WebSupergoo.ABCpdf6.Internal.PDFException. The contents contains only the not -terribly-helpful title "Unable to get image data. Out Of Memory" Usually this happens when trying to add an image to the PDF. Since these images are PNGs of less than 100k, I'm guessing their size isn't the issue.

此外,真正奇怪的是,一旦这个问题开始发生,得到它停止的唯一方法似乎是重新启动Web服务器,这显然是一个有点低于平均水平。

Also, the really strange thing is that once this issue starts happening, the only way to get it to stop seems to be to reboot the web server, which is clearly a little sub-par.

有没有人有这个问题(甚至用这个工具吗?)

Has anyone ever had this problem (or even used this tool?)

推荐答案

更​​新,三个月后:

尽可能接近我可以告诉大家,内存的问题都解决了,当我们从ABCpdf 6升级到7这似乎是第7版不再是一个.NET包装的COM对象,但所有的管理code从下向上。它仍然不是最大的PDF格式发电机在那里,但在资源配置中的问题似乎已经解决了。

As near as I can tell, the memory issues were all resolved when we upgraded from ABCpdf 6 to 7. It would seem that version 7 is no longer a COM object with a .NET wrapper, but all managed code from the bottom up. It's still not the greatest PDF generator out there, but the resource disposal problems seem to have been resolved.

这篇关于时不时地,ABCpdf内存用完的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆