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.

16 comments:

眼淚 said...

Every why has a wherefore.........................................

pierce79 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

pierce79 said...

hi nice blog

MY COMPUTER said...

Hi. Nice effort. Keep it up.
I also request you to visit my blog:
Palm Phone Reviews

Alex said...

Thanks a lot for sharing this post.






...Alex

generic viagra 100mg

Edwin said...

scrub m65 kamagra attorney lawyer body scrub field jacket lovegra marijuana attorney injury lawyer 14k gold ed hardy 14k yellow gold

male said...

For men who want bigger, harder, longer-lasting erections, there's now VigRX Plus™, a fresh twist on the already popular VigRX™, but designed to further enhance men's sexual functioning with the addition of three exciting new ingredients: Damiana, Tribulus, and Bioperin. Doctor endorsed and rated #1 for results by clients of penis enlargement consumers. rated two penis pills is vimax. if you find about male enhancement this products is the best and proven to work, there products have money-back guarantee in effectiveness and result.

ling said...

I like this website.This website helped me with prayer learning.and welcome to visit our website nike outlet stores.thank you!

ritesh shinde said...

Read all the related Posts:


Basic of VBScript Language for QTP

Introduction to QTP (QuickTest Professional) Part2

Introduction to QTP (QuickTest Professional) Part3

Introduction to QTP (QuickTest Professional) Part4

Basic of VBScript Language for QTP

ISTQB

ISTQB Practice Test Part 1
ISTQB Practice Test Part 2
ISTQB Practice Test Part 3
ISTQB Practice Test Part 4
ISTQB Practice Te st Part 5
ISTQB Practice Test Part 6
ISTQB Practice Test Part 7
ISTQB Practice Test Part 8
ISTQB Practice Test Part 9

malini ecorp said...

Thanks for sharing this useful info. Keep updating same way.
Regards,Siddu online Training

Muneer Hussian said...

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

case study solution
case study solution
case study solution
case study solution

Adams Scott said...

I will be really glad my spouse and I witnessed an excellent web site. I have to thank a lot a lot of information!
Advertising agencies in Karachi | Advertising agencies in Pakistan

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

ERP said...

We are ERPTREE Leading oracle fusion HCM Online Training institute. We are providing online training services since 1999. still we are adding more oracle related courses as the technology changes. 2000+ online courses are available. we all ways achieve our goal in satisfying students in result we have global recognition to our site. we have best faculty for all of our online courses.


Oracle fusion HCM Online Training

Oracle Fusion HCM Training

Calfre India said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor
lead live training in Oracle Fusion Financials online Training , World Class Virtual Instructor led training on Oracle fusion Financials Online Training. We have industry expert trainer. We provide Training Material and Software Support. calfre has successfully conducted 100000+ trainings in India, USA, UK, Australlia,
Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.