Out of Memory Exception : XMl doc
Are you looking for way resolve error Out of Memory Exception ? then read this thread to know more about it
I have a windows service running 24*7.This service load xml messages from a queue and load to database.
I have one worker thread which continuw to load messages.
I am using XDocument.Parse(xmlmessages)methid to parse the xml message.
then i call other method to serialize and deserialize the parsed xml message.
Once the messages is loaded to database i free the resources of XDocument object
XDocument=null..but sometime after running 30 hrs or 24 hrs i get Out of Memory Exception. please advice what i can do to free the memory resources.