序列化时出现OutOfMemoryException [英] OutOfMemoryException while serialise

查看:147
本文介绍了序列化时出现OutOfMemoryException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用soap格式化程序对数组对象进行序列化,但是在进行序列化时会给出``OutOfMemoryException''.谁能告诉我可以使用肥皂格式化程序进行序列化的对象的最大大小是多少.

Thanx

Hi,

I am serialising array object using soap formatter.But while serialising it gives ''OutOfMemoryException''. Can anybody tell me what is maximum size of object we can serialise using soap formatter.

Thanx

推荐答案

您要序列化哪种对象?
您是否亲自在这些对象上实现了ISerializable?
这些对象是否相互引用? (这可能会导致无休止的递归对象序列化-直到内存用完为止)
What kind of objects are you serializing?
Did you implement ISerializable on those objects yourself?
Do these objects reference each other? (this could cause endless recursive object serialization - until you run out of memory)


这篇关于序列化时出现OutOfMemoryException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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