.NET OutOfMemoryException on XMLSerializer.Serialize

前端 未结 2 1833
一生所求
一生所求 2021-02-15 15:22

I have a web site that is throwing OutOfMemoryExceptions on whenever it gets to the following spot in my code:

XmlSerializer xs = new XmlSerializer(t, xoverrides         


        
2条回答
  •  庸人自扰
    2021-02-15 15:47

    If I recall from similar problems a while back, the XmlSerializer needs a ton of memory more than the data its processing. I'm not sure why this is the case though.

提交回复
热议问题