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

You Might Also Like...

  • screen-shot-2010-07-15-at-105913-pm

    Easy way to store event listener references & prevent memory leaks

    1053 readersMany times when we find memory leaks in our applications, it’s due to listeners that have been set by us or someone else and never removed from memory. Although it’s recommended to use weak reference when setting event listeners, the fact that we have to put these three extra parameters often cause developers

  • screen-shot-2010-07-04-at-93958-am

    API to control player’s frame rate per second on Pure AS3/Flex/AIR apps

    1718 readersOne of the most effective and easy ways to optimize your Flash application is controlling the player’s frame rate per second (fps). In fact, FP 10.1, which takes mobility into account, have optimized performance by adjusting the frame rate. FP 10.1 also help manage the SWFs that are loaded and delay loading SWFs based on

  • Rendering PDF in AIR with Flash (not Flex)

    133 readersI googled for methods to render PDF in AIR with Flash. But most of examples were for Flex applications. Actually it also very simple to render PDF with Flash (pure ActionScript project instead of Flex project). The most important thing for rendering PDF in Flash, the stage scale mode must be NO_SCALE, while by default,

  • Comparing Flash, HTML5, and Silverlight – Only at FITC SF!

    210 readersA question that has been deep on my mind for the past seven months (ever since apple sparked this whole anti-flash thing) is what is the truth behind the best technology to use for video and when. Those of us who have been a little more seasoned in the industry generally know that its [...]

  • When it is time to reset dirty flag “invalidatePropertiesFlag” in Flex invalidation framework?

    394 readers   Invalidation in Flex is a mechanism by which changes made to a component's property values are queued and processed.This property value invalidation in Flex is controlled by setting and resetting boolean variables called dirty flags.    One of such a dirty flags used internally in Flex invalidation mechanism is invalidatePropertiesFlag flag.    This particular flag is reset

  • My Sessions at MAX 2010

    160 readersAgain this year, I will be presenting at MAX. In addition to the regular track sessions, I have signed up to host a full day pre-conference session called “Creating Enterprise RIAs: From Design to Implementation”. For the past few months,...

  • Flash 11 should be a switch to JavaScript

    435 readersFlash 11 should be a switch to JavaScriptLet's press the reset button and drop ActionScript. It hold no relevance or advantage in todays world.Over the past few months I've been working closely with JavaScript in different environments outside of the HTML DOM. Two of those being on the server side - Node.js and CouchDB. The

  • Flash Builder Profiler – Fixing Memory Leak on ExternalInterface

    362 readersOne of the most common problems with Flash applications are memory leaks, programming flaws that cause Flash Player to loose access to memory that it could recycle otherwise.  In the mobile space it’s crucial to understand memory management to get the most out of the Flash Player, and ultimately to ensure a smooth ride for

  • Simple Flex 4 components styling

    515 readersAs you probably know upcoming Flex 4 (Gumbo) release was built with design in mind to let developers easily and quickly skin and style their applications. Especially skinning can be realized with the use of new components architecture called Spark that comes with two built-in themes, one also called Spark (the default one) and the

  • My Sessions at MAX 2010

    102 readersAgain this year, I will be presenting at MAX. In addition to the regular track sessions, I have signed up to host a full day pre-conference session called “Creating Enterprise RIAs: From Design to Implementation”. For the past few months, I have been running Adobe Enterprise Developer Days where we take a look at the

'>How to create a top quality logo for your company
  • Remove a Section of Your Photo
  • Subscribe to RSS headline updates from: GurusUnleashed
    Powered by FeedBurner

  • Design & Career Resources

    Open design job and RFQ/RFP listings for Thursday, 29 July Courtesy of Design Jobs Live!
    The latest resources and free stuff (like textures, fonts, Photoshop brushes, scripts, plug-ins, and much more!) from workflowFreelance.com. Read more!
    The latest headlines from workflowFreelance.com. Read more!
  • Popular Search Terms

    Curious what others are searching for? Below are the most popular search terms over the last 30 days.