SharePoint Silverlight 图像查看器 (AG_E_Network_Error)
我的应用程序是一个 Silverlight 图像查看器,它使用 Silverlight 图像控件(通过设置源属性)显示来自 Sharepoint 的图像。我的应用程序显示第一张图像,我可以使用导航按钮前进和后退。
一切工作正常,但是在一定数量的图像之后(同一文件夹的数量始终相同(可能达到相同的下载限制时),我开始收到 AG_E_Network_Error 并且图像无法再加载。
然后我无法再显示任何图像(总是相同的错误),直到我刷新应用程序。
有任何帮助吗?在 silverlight 应用程序中下载有任何限制吗?
伙计们,请帮忙,这很紧急......有什么想法吗?
My application is a Silverlight Image viewer that displays images from Sharepoint using the Silverlight Image control (by setting the source propery). My app displays the first image and i can use navigation buttons to go forward and backward.
Everything is working fine, however after a certain amount of images (always the same amout for the same folder (probably when reaching the same download limit) i start getting the AG_E_Network_Error and the images can no more get loaded.
I can then no longer display any image (always the same error) until i refresh the application.
Any help pleaaaaase? any limit on downloading in a silverlight app?
Guys, please Help, it's urgent...any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当图像不再显示时,我并没有销毁它们,这会消耗 RAM,每次加载时,RAM 使用率都会越来越高,直到图像无法再加载(AG_NETWORK_ERROR)。
只需为之前的每个图像设置 image source = null 就可以了。
I wasn't destroying my images when they weren't showing anymore, this was killing the RAM, on every load the RAM usage was getting higher and higher untill images can no more be loaded (AG_NETWORK_ERROR).
Just set image source = null for every previous image, and i was fine.