Recently I am doing an Flex application in Air which will plays video when detecting certain key input. However, I keep on experience crash after a short period of time running the application. Then, I found that it was because out of memory. Everytime when video playback finished and play new video, the memory usage increase and it keeps on increase until it use out all computer available memory and crash. The video is loaded using videodisplay component.
Here I want to ask, how can we manage the memory usage? Clear the memory?
Use the profiler to find out what is leaking, then find out what the
backreferences are that are responsible for the leak.