24/7 Memory Leak
I have a (Flash MX 2004 pro) live news application that is going to be running 24/7 on an extremely large video screen, which is pulling in live data and images from 12 XML newsfeeds, all in different languages from around the globe, every 20 minutes or so, to display in a series of scripted animations. The news is interspersed with a series of embedded video sequences.
This amounts to a huge amount of data and image files, which need to be loaded up dynamically every day. My problem is therefore to do with memory leaks.
I have, as far as I can see, a very tightly controlled application, all classes, functions, objects, references and variables have been scoped carefully to avoid any unnecessary memory usage. I delete unused items, have no runaway numbers, no infinite loops, and data and XML objects are deleted as soon as the data is harvested from them.
Performance is absolutely fine after 24 hours, with no lag in any of the many scripted animated sequences. However, I have noticed that when the XML data is loaded, even though the XML object is clearly removed after each load and parse, upon inspection of the task manager, the memory usage has increased by what seems like a similar amount to the size of the XML files.
This amounts to 100mb of extra memory usage over 24 hours, which will become a problem unless the application is restarted.
Has anyone encountered similar problems with long-running applications?