Memory Leak using StreamReader and XmlSerializer

前端 未结 6 1996

I\'ve been googling for the past few hours and trying different things but can\'t seem to the bottom of this....

When I run this code, the memory usage continuously

6条回答
  •  粉色の甜心
    2020-11-22 06:01

    I think moving the XMLSerializer constructor outside the loop and caching its result will fix it, explanation here

提交回复
热议问题