Flex Can Not Unload Applications From Memory! QED

Hi,
at work we are trying to load and unload Flex Applications from a long standing shell application. We have studied the appropriate documentation, especially this
http://livedocs.adobe.com/flex/3/loading_applications.pdf
but we have found that Flex simply will nor release memory once used, no matter how simple the flex application. I have put a couple of posts on my blog about it
http://www.dz015.com/?p=139
http://www.dz015.com/?p=166
In particular the second post seems to highlight what I would consider to be a bug.
What do other people think.
Has anybody out there successfully loaded and unloaded flex applications from within a shell application over a long period of time?
Conrad

Styles can pin an application or module in memory in 3.x versions of Flex but this has been fixed in Flex 4. There are other things that can cause memory leaks. Probably the easiest one to run into, especially with a shell application, are leaks caused by resource bundles.
If a sub-application or module uses components that use ResourceBundles that are not used by the main application, those resource bundles will get registered with the ResourceManager and pin the first instance of the application or module. You can use the -compiler.keep-generated-actionscript compiler option to see which resource bundles the module and main application are using. The resource bundles are listed in the "compiledResourceBundleNames" object of the info() function. You can force the main application to have those additional resource bundles by adding the resource bundle metadata to the main application. For example, to add the "controls" resource bundle, you would add to the main application MXML file: <mx:Metadata>[ResourceBundle("controls")]</mx:Metadata> If you are loading your resource bundles as modules, make sure the resource modules have completed loading before loading the module that is being pinned.
More information about leaks is available here: http://blogs.adobe.com/aharui/2009/08/what_we_know_about_unloading_m.html
-Darrell

Similar Messages

  • Can not Run Application from Client PC.

    Hi,
    I have a pc running on WinXP called "PC1". I have installed Oracle9i Database, Developer Suite 10g and services. I can run my application smoothly on "PC1".
    My problem is that i can not run my application from client pc running on WinXP called "PC2". I have installed JINIT.exe on "PC2". I started OC4J also on "PC2". IE shows "Page can not be displayed" message.
    What settings i have to do to run my application on Client i.e. "PC2".
    Waiting for any kind of help.
    Thanks.

    Hi all,
    Thanks for the reply.
    I have already install same JINI.exe on Client "PC2" which is on Server "PC1". And the version of the IE and JINI are same on Server "PC1" and Client "PC2".
    I start OC4J on Server.
    Should i make some settings on JINI Control Panel on Client ? Like Proxies.
    I have enable all check box on "Basic" Tab of JINI.
    Further, On client, the check Box of "Show Java Console" is also on, but when i try to connect my application from IE, the Java console does not appear.
    I would like to inform u that, when i start additional Proxy driver like Analog proxy on my server and then i give that proxy address and port in Client IE connection LAN setting, i am able to run my application from that Client.
    But i think that is not the solution.
    Waiting for reply.

  • Version 5.0 will not unload itself from memory when I close it. This results in not being able to open FF later unless I manually go and close the application in Windows task manager. Any ideas as this is getting very frustrating.

    I have this issue on 3 computers that were just updated with FF 5.0. When I close FF, the application "Firefox.exe *32" remains in memory. Trying to open FF again later greets me with the error that FF can't open because another instance of FF is already running. Previous versions did unload completely and never caused this issue..

    I found the culprit. Norton Internet Security added an add-on to FF called Symantic IPS 2.0 which is causing FF 5 not to close properly. I have no idea what it is for but FF works properly again with it disabled.
    For reference, that add-on worked fine with FF 3.x as well as FF 4.x. It just doesn't seem to like FF 5.0.

  • I can not load application from app store

    I just bought a new Iphone and when I try to upload new free applications (ex Solitaire) on my Iphone from app store, it does not work.
    The little icone appears, with loading at the bottom, and then nothing happen (no blue line to show the update progressing) ... after a while the icone desappear .
    Any Idea why and what I could do to fix the issue ?
    Thanks in advance.
    Anne

    plz
    help me

  • Can not sync applications from pc to iphone

    can somebody help me sync my purchased applications at itunes to my iphone?before i can do this at my office pc but this pc was transferred to another office where i wasn't able to deauthorized it. then i have a time deauthorized it. and when i tried syncing all i get is grey tone at applications? please help me sort this out..tks

    Through iTunes. See this support document about syncing content to the phone http://support.apple.com/kb/HT1296

  • Itunes application can not be open the disk can not be read from or writte

    itunes can not be opened the disk can not be read from or written to. That is the warning i get when i click my itunes to open it. Problem...
    there is no disk:) i have no idea what this warning means.. i have restarted and nothing.. i updated itunes and same warning.. there is no disk in the drive at all..
    infact i made sure i was in a room with no other disks.. Help??

    A few things to try:
    • Restore Permissions, using Disk Utility (in ~Applications/Utilities)
    • Set the correct Ownership & Permissions for the iTunes folder:
    Select the iTunes folder in ~/Users/YourUsername/Music.
    Get Info (command-I).
    Expand 'Ownership & Permissions' and 'Details:'
    You must read: 'You can Read & Write': if not, change it.
    Click on the 'Apply to enclosed items...' button.
    Hope this helps.
    M

  • Since I actualize my iphone 4 to ios6 I can´t download applications from app store in it they seem to by downloading but within some seconds it's like if not clicked the download button. But then I have "waiting" mode applications that I never search for.

    Since I actualize my iphone 4 to ios6 I can´t download applications from app store in it they seem to by downloading but within some seconds it's like if not clicked the download button. But then I have "waiting" mode applications that I never search for.

    Hi nitish7
    Thank you for posting and welcome to Nokia Support Discussions! 
    Can you provide us the following information to better assist you:
    1. Model of your phone.
    2. Are you downloading from Nokia Store on the phone or using Nokia Suite?
    3. Type of connection you're using (WiFi/mobile data)
    4. Any error message you're getting?
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • I have a Mac OS X version 10.5.8 and recently got an Iphone4. I can not access Icloud from my computer. Is there any software, new operating system or anything I can purchase that will allow me access to the cloud?

    I have a Mac OS X version 10.5.8 and recently got an Iphone4. I can not access Icloud from my computer. Is there any software, new operating system or anything I can purchase that will allow me access to the cloud?

    Upgrading to Snow Leopard, Lion, or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    You can purchase Snow Leopard by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    Third-party sources for Snow Leopard are:
    Snow Leopard from Amazon.com
    Snow Leopard from eBay
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
    Be sure your computer meets the minimum requirements:
    Apple - OS X Mountain Lion - Read the technical specifications.
    Macs that can be upgraded to OS X Mountain Lion
      1. iMac (Mid 2007 or newer)
      2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
      3. MacBook Pro (Mid/Late 2007 or newer)
      4. MacBook Air (Late 2008 or newer)
      5. Mac mini (Early 2009 or newer)
      6. Mac Pro (Early 2008 or newer)
      7. Xserve (Early 2009)
    Are my applications compatible?
    See App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS.
    Am I eligible for the free upgrade?
    See Apple - Free OS X Mountain Lion upgrade Program.
    For a complete How-To introduction from Apple see Apple - Upgrade your Mac to OS X Mountain Lion.
    Model Eligibility for Snow Leopard and Lion.
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may
          apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.
    Lion System Requirements
      1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or
          Xeon processor
      2. 2GB of memory
      3. OS X v10.6.6 or later (v10.6.8 recommended)
      4. 7GB of available space
      5. Some features require an Apple ID; terms apply.

  • Can not get application bc4j for adding context root file

    Hi all,
    Can someone help me on this,
    i got this this error while trying to run my web based reporting:
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP 2006Feb/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/bc4j.ear: Unable to get ApplicationConfig for bc4j : Error creating deployment directory: IO Error: The system cannot find the path specified.
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/ITS.ear: Unable to get ApplicationConfig for ITS : Error creating deployment directory: IO Error: The system cannot find the path specified.
    2006-08-21 18:01:07.265 WARNING J2EE_OJR0007 Can not get application bc4j for adding context root file:/C:/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/default-web-site.xml
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 5282 ms.
    Target URL -- http://192.168.2.55:8988/Trans-Reporting-context-root/login.jsp
    06/08/21 18:01:07 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initializedIF i run http://192.168.2.55:8080/Reporting/login.jsp from web browser then is ok, but cannot straight run from JDeveloper? How to set the path?
    rgds,
    bryan

    Dear Frank,
    Thanks for ur reply but i still failed to access to my login.jsp
    I already select RUN from menu then clean <XXXX.jpr>, then rebuild the project and Run the project but still have the same problem.
    rgds,
    bryan

  • HT5568 I have Mac OS X 10.7.5- can not download safari from anywhere, what should I do?

    I have Mac OS X 10.7.5- can not download safari from anywhere, what should I do?

    Safari is part of OS X 10.7.5, and your downloads should be via  > Software Update...
    Can you provide some details on why you're trying to download Safari?  Did Safari get deleteed from the dock or from the /Applications folder?  Is Safari failing somehow?
    There are ways to re-load Safari using the standard updates, if so.  That usually involves re-applying the combo update kits, but I'd not start with that as a suggestion without knowing a little more about what's causing you to seek to re-download Safari...
    And FWIW, and this may well be obvious to you, but — based solely on your phrasing, as I don't know how familiar you are with this stuff — recognize that sites claiming to offer {Safari or other web browsers, video codecs, flash players, system performance accellerators, anti-virus software,  cache cleaners, games, whatever} can be distributing malware for OS X.  Once the tool is downloaded and installed and authenticated, then the tool can do whatever it wants.  Put another way, please don't try downloading Safari from anywhere.  Please get Safari only from the Apple web site.

  • Can i use applications from an external hard drive?

    Can i use applications from an external hard drive?

    Photoshop itself needs to reside inside of it's Applications folder so that it has access to it's Libraries and plugins. So if you are going to attempt to store and run it from an external drive you need to copy the whole Application folder or install it directly to the external drive. Even still I am not 100% positive it will work as I know it still needs to access your Library/Application Support for additional files and licensing.
    Why do you want to run Photoshop from an external drive?
    George

  • Can not stream movies from netflix

    I have an MacBook Air and I can not stream movies from Netflix.  I have downloaded Silverlight and unloaded it and reloaded it but still can not stream movies. What is up

    What exactly happens when you try to view a movie?  And how exactly are you "unloading" Silverlight?
    http://www.microsoft.com/getsilverlight/get-started/install/removing-silverlight -mac.aspx

  • How can i launch application from the terminal in 32-bit mode?

    how can i launch application from the terminal in 32-bit mode?
    everytime i have to check and uncheck the finder's info panel and it's really annoying, thanks!

    ''Courtesy of cor-el''
    https://support.mozilla.com/en-US/questions/823873
    Other users should note that Firefox has public release versions of 64bit only for Mac And Linux; not for Windows, yet.

  • Can I move applications from one user to another on the same computer?

    If I have two users on one mac, can I move applications from one user to another on the same computer?
    Thanks

    By default, apps are installed for all the users in /Applications

  • 've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    've Password job a year ago to Mobil iPhone 4, and now lost and I can not wipe data from the device or transferred to the new device .. What do I do?

    iPhones require a SIM for activation.
    Put the device in DFU mode (google it) and restore via iTunes.

Maybe you are looking for

  • Cannot save the file may be read only

    Does anyone know how to save a current PDF in Adobe Acrobat X pro if getting "the file may be read only, or another user may have it opened.  Please save document with a different name or in a different folder" windows 7.  The file has not been opene

  • Report OutPut directly to  the printer by selecting in the selection screen

    Hi Guys, Can any one help, How to give Report output (ALV report ) directly to the printer by selecting the printer name in the selection screen . Sap Version is ECC 6.0. Thanks In advance praveen k

  • How do i download a newer version ?

    how do i download a newer version ? - i am changing iphones and want to save my contacts from exchange to itunes and port to my new phone

  • I'm trying tooo add music to an ipod but it wont work!

    I'm trying to add music from a cd to my ipod but when I sync the Ipod for the music to go on it ..it doesnt go on my ipod..I tried everything I even called!!!!! HELP ME!

  • Missing Keywords

    I created two new topics to an existing project and added various keywords to the index. When I generate and run the project, the keywords appear. They also appear in Topic Properties and Topic References reports. However, when I publish Webhelp, the