Thursday, December 24, 2009

4 items to check if a Flex 4 Application is leaking memory !

I have been working with Flash Builder profiler for past few months. After looking at few applications and memory leaks in them I came up with following 4 items which can cause a Flex application to leak memory.

If you don't like to read lot of text the gist is to use weak references where ever possible.

1. addEventListener is being called with the default value of false for its useWeakReference flag.

2. bindProperty and bindSetter methods of BindingUtils are called with default value of false for its useWeakReference flag.

Please note: I don't know what is the equivalent thing in Flex 3.

3. ChangeWatcher.watch method is being called with default value of false for its useWeakReference flag.

Please note: I don't know what is the equivalent thing in Flex 3.

4. Dictionaries are being used with weakKeys flag in the constructor set to false.

Items 3 and 4 can cause some hidden links to be formed and memory to leak. More on that soon.

8 comments:

Unknown said...

HI 4items to check i think if a leaking of memory thats right aldo for a better life you nnet to Buy viagra is a better life use it and enjoy life more .bye

Unknown said...

Thanks a lot for sharing this post.






...Alex

generic viagra 100mg

Oracle Fusion said...

Very interesting, good job and thanks for sharing such a good blog. Very nice I really like your blog......................
R12 HRMS Training

ORACLE FUSION PROCUREMENT said...

Very valuable blog.thanks for giving very valuable blog.
oracle fusion procurement online training

Sannihitha Technologies said...

Thanks for sharing this valuable information to our vision.
You have posted a trust worthy blog keep sharing.
webdesigning course in hyderabad

Pallavi said...

Ensures Best online Job Suppport . Thanks For Sharing
http://teksupports.in/

Anonymous said...

Usually, I never comment on blogs but your article is so convincing that I never stop myself to say something about it. I really like this post and Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. I am also providing coaching on angular js Angular training in Hyderabad just go through the link
angular js
MindQ Systems provides Training on Angular js, Angular2, Angular4, Angular5, Angular6, Angular7, Angular8. Mind Q provides Classroom Training, Online Training and video course for Angular Training. Mindq provides Training with an expert Trainer. Enroll now and schedule a demo session with the trainer.

ravi said...

nice blog thanks for sharing blog with us https://snowflakemasters.in/