System.totalMemory / unload / IE (2 questions)

hello guys, i ve been playing with AS3 from a while and i
noticed 2 things
after a huge search i could find my answers, so tell me what
do you think please.
1/ i am trying to load images and monitor the
System.totalMemory i noticed that even if i unload and remove the
listner and give it 500 ms so the GC do its job but the unloaded
images data are always there... please see the attached file u ll
notice that the totalMemory (in the FLASH DEV ENVIROMENT) increase
and increase and this is a small image what about if i am loading
huge images...
2/ talking about huge images well replace the img.jpg with
something bigger and open your performance monitor and run the html
page in IE notice that the memory consumed by the IE page increase
and increase and never stop (its LIKE in the FLASH DEV
ENVIROMENT)... but in FF or swf its ok .
so the question here is the unload remove the data or what?
or am i doing something wrong that make the GC never remove the
data. And how would i manage the IE issue??
FILE:
Link
Thanks

Hi,
I also facing the same memory problem.
As you said in this case it works fine. But my case i am not
loading images instead i load swf file which has sound embeded to
the timeline as stream.
According to this code, same memory management performs well
for me also. but the sound in the unloaded swf is still audible and
when i load the next swf, these all sounds mix up and i don't hear
anything properly.
To avoid the sound problem i added a line
SoundMixer.stopAll() to getaway the problem, but after i added this
line memory management got lost and my system gets hanged.
import fl.controls.List;
import fl.data.DataProvider;
var tl:MovieClip = this;
var loader:Loader = new Loader();
var myList:List=new List();
var dp:DataProvider=new DataProvider();
tl.addChild(loader);
addChild(myList);
function loadNext(e:Event) {
//loader.unload();
loader.contentLoaderInfo.removeEventListener(Event.INIT,loadNext);
tl.removeChild(loader);
loader = null;
loader = new Loader();
tl.addChild(loader);
var o=new Object();
o.label=String(Math.floor(System.totalMemory/1024));
dp.addItemAt(o,0);
myList.dataProvider=dp;
setTimeout(loadNow,100,null);
//start loading
function loadNow(e) {
loader.contentLoaderInfo.addEventListener(Event.INIT,loadNext,false,0,true);
loader.load(new URLRequest('img.jpg'));
loadNow(null);

Similar Messages

  • My system disk icon has a question mark in it and does not open now

    my system disk icon has a question mark in it and does not open now
    and my devices name is gone when i click on FINDER, my favourites is there with the following listed under it-
    ALL MY FILES
    AIRDROP
    APPLICATIONS
    DESKTOP
    DOCUMENTS and under documents was the DEVICES word with my Macintosh under it, this is missing... what have i done

    Somehow you've managed to delete it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2. Download it from the App Store to reinstall It's on your Purchases List* there.
    For older versions that have been installed from Disk you'll need these additional steps:
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    *Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • Since Lion system profiler is now a question mark in the dock. Can i get it back?

    Since Lion, system profiler is now a question mark in the dock. Can I get it back? dsso

    In Lion, there is no Systim Profiler. It is System Information now located in the Utilities Folder. Open that up and select to keep it in the Dock.
    Drag the icon for system profiler off the Dock.

  • System.totalMemory and System.privateMemory are wrong!

    Hi,
    When developing for mobile I use Asobe AIR, and when I check for ouw much memory it took (Using System.totalMemory) I see values between 7Mb. to 13Mb.
    When I check using System,privateMemory I see values between 20Mb. to 60Mb.!
    I've checked how much it really took, using the task manager, and I see that the calculation is System.totalMemory+System.privateMemory.
    This means that every app that I create using Adobe AIR takes around 70Mb. in memory without really doing anything??
    Isn't that too much?

    Depending on what components you're using, this could be correct.  I just created a blank project and am seeing about 20mb on Win and 30mb on Mac.  If you feel like you're seeing something abnormal, or our later runtimes are showing higher numbers, please open a new bug report on this over at bugbase.adobe.com.  Please post back with the URL so that others affected can add their comments and votes.

  • System.TotalMemory for AS2?

    HI,
         Is there an alternative for System.TotalMemory in actionscript 2.0?I would like to know how much memory is used by flash players. Also is it possible to clear the memory.
    Regards,
    Kameshwaran A.

    no, but you can load your as2 app into an as3 text fla and possibly yes, to some extent using System.gc().

  • System.totalMemory v profiler

    Hi there,
    I'm slightly confused by the System.totalMemory property in the Flex 3.5 API. When I output the value in my onEnterFrame function it's reporting around 13Mb. When I run the same SWF through the FB4 profiler, the memory usage is around 2Mb.
    I've read that System.totalMemory reports all memory used by all Flash content running on the system, I've run the SWF in the standalone player with no other Flash content or browsers running, the same results are reported. Seems to me that I can't trust the output from System.totalMemory at all, also seems odd that the freeMemory and privateMemory properties that were available in earlier versions of the Flex SDK have been removed.
    Any advice would be greatly appreciated, thanks in advance.
    Ronny.

    no, but you can load your as2 app into an as3 text fla and possibly yes, to some extent using System.gc().

  • Flash.system.System.totalMemory different than Windows mem display

    Anyone know why flash.system.System.totalMemory is much
    different than what I see FlashPlayer taking up in the Windows Task
    Manager?
    I would expect to see some overhead, but the differences I'm
    seeing are quite large (i.e. 80MB vs 150MB).
    Thanks

    I may have run into something that might be related. The project I am working on was going fine until I added updates and switch from VGA to HDMI. I added the updates via ICE rather than download after install. The OS install went through the normal
    routine and rebooted. I removed the installation disk and the system rebooted and started to continue the install process. Then the screen went blank as if the system was going to reboot... nothing. I checked the HDMI output and still nothing. I removed
    all the updates and tried again, same exact result. If I power cycle the message says that the install failed.
    I went into the BIOS and found the video settings had support for CRT, HDMI and LVDS. I have ran into LVDS issues before. I disable LVDS, and set the system to output from CRT. This time the OS installer worked as expected. My guess is that the video driver
    switched to the LVDS screen. You might be getting a video driver update - check the BIOS settings and disable LVDS if enabled.
    Sean Liming - Book Author: Starter Guide SIM (WEI), Pro Guide to WE8S & WES 7, Pro Guide to POS for .NET - www.annabooks.com / www.seanliming.com
    There's no driver updates, also I don't have the option for LVDS in the bios. The computer has a display port and HDMI, I'm using the HDMI.
    I re-imaged the computer and tried updating 1 update at a time to try an isolate the problem. About 5 updates in I realized it would take several hours to complete the job, so I started to group the updates. The problem re-occurred with the following
    group of updates.
    KB2991963
    KB2992611
    KB2993958
    KB3003743
    KB3004361
    Unfortunately I don't see a correlation. I re-imaged and re-installed the updates on 3 other identical machines and could not reproduce the problem. Very frustrating...

  • Hello to all. I'm not an expert in operating systems, and I pose this question: Can I upgrade from 10.6.8 to Mountain Lion on a Mac Book Pro

    Hello to all. I'm not an expert in operating systems, and I pose this question: Can I upgrade from 10.6.8 to Mountain Lion on a Mac Book Pro

    That depends on the Macbook Pro.The requirements for Mountain Lion are listed here:
    http://www.apple.com/osx/specs/
    It is available from the Mac App Store (in Applications).
    You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • Is the PXIe-PCIe8361 adequate for this system? And external clock questions...

    Hi all,
    I have spent some time piecing together a system and I'd like a sanity check before pulling the trigger on this purchase.  The system will contain the following hardware:
    1. Chassis: PXIe-1078
    2. Controller: PXIe-PCIe8361
    3. 3 x PXIe-6363 (16 analog inputs each card, 32 digital inputs each card, all internally clocked @ 10kHz)
    4. 2 x PXI-6224 (32 digital inputs on one, 8 digital inputs on the other, externally clocked in "bursts" of 62.5khz)
    5. Labview software
    The three PXI-6363 cards will be responsible for  a mix of analog and digital measurements made @ 10 kHz, timed continuously by the onboard clock.
    One PXI-6224 will be clocked externally @ 62.5 kHz and will be used to collect digital data on a 32-bit port.  These clock pulses will not be continuous, but will occur in bursts lasting for 2ms every 20ms.
    The other PXI-6224 will be clocked externally @ 62.5kHz as well and will be used to collect digital data on an 8-bit port. These clock pulses will not be continuous, but will occur in bursts lasting for 2 ms at random intervals.
    My questions are:
    1. Am I planning anything that looks unreasonable for this hardware?
    2.  Should I expect issues with data transfer rates with the PXIe-PCIe8361?  I will be operating well within the advertised 110MB/s throughput of the device.  I plan to stream this method... NI Fast TDMS data streaming
    3.  I have only ever used NI cards for continuous measurements made by an onboard clock.  When I set up a task to collect data that is externally-timed, will the DAQ be expecting a "continuous" clock pulse, or will the system wait patiently for clock pulses to arrive at any rate (any rate within the spec of the card, of course)?
    Thanks, any input is appreciated.

    Hello LucasH0011
    1-As long as you put the PXI-6224  and the PXIe-6363 cards in the corresponding slots, meaning the express(PXIe-6363) in the express and the hybrid(PXI-6224) in the hybrid.
    2-I think you would  not have issues with the transfer rate.
    3-Your timing specifications sound reasonable to me, I think you will be fine. 
    Here is a document that has useful concepts for the use of cards:
    http://www.ni.com/white-paper/3615/en/
    It is for the M-Series, but the concepts apply to the X-Series as well. 
    Regards 
    Ernesto

  • Mac Newbie - System restore/Time machine type question

    Hi There, Macbook newbie here, got my macbook for xmas and I am totally converted.
    I was hoping someone could point me in the direction of how to set up a 'system restore' type of thing similiar to the windows system restore via time machine.
    Do I need to connect to an external hard drive for this?
    External hard drive question, are there special 'mac' external hard drives or could I just pick anyone up eg seagate/freecom etc?
    Anti virus question: which software would you recommend for Anti virus?
    Appreciate any help and looking forward to making them most of my new mac!

    kal137 wrote:
    Hi There, Macbook newbie here, got my macbook for xmas and I am totally converted.
    I was hoping someone could point me in the direction of how to set up a 'system restore' type of thing similiar to the windows system restore via time machine.
    Hi, and welcome to the forums.
    In addition to the info offered by Jolly Giant, Time Machine is rather different from the system restore feature of Windoze.
    First, a bit of terminology: +Time Machine+ is the software built-in to recent Macs that does backups and restores. It can back up to an internal HD, an external HD, or a +Time Capsule,+ which is a piece of Apple hardware that combines a wireless router and hard drive.
    Technically, this forum is for +Time Capsules;+ there are separate forums in the Leopard and Snow Leopard sections for +Time Machine.+
    Time Machine backs-up +*your entire system+* -- OSX, apps, configuration, users, settings, preferences, data, etc. It also keeps previous versions of things you've changed or deleted (so it needs more space than what's used on your system).
    You can then easily browse the backups and restore selected items, if you've deleted or changed them in error, or they somehow got corrupted.
    Or, if something goes terribly wrong, you can also restore your entire system to the exact state it was in at the time of any backup, even if that's a previous version of OSX. That's the procedure Jolly Giant referred you to in the FAQ Tip.
    You might want to review these:
    Time Machine Tutorial
    Time Machine 101
    How to back up and restore your files
    Time Machine Features
    Apple - Support - Mac OSX v10.5 Leopard Time Machine
    and perhaps browse the Time Machine - Frequently Asked Questions *User Tip,* also at the top of the +Time Machine+ forum.
    See especially #1 and #5 there before getting started.

  • System.out.println in gui--- question

    Hello People.
    First of all, I'm new to the forums, so if it doesn't belong here, plese tell me where to post questions like this.
    The Problem:
    I have a GUI and another class,which contains the Program.
    Here's the code of my class:
    int Battle(String CharName) {
              System.out.println(CharName + " Is fighting agains a monster");
              while (CharHP > 0 && MonsterHP != 0) {
                   MonsterHP = MonsterHP - CharDmg;
                   System.out.println("The monster has " + MonsterHP + "Hitpoints left ");
                   CharHP = CharHP - MonsterDamage;
                   System.out.println(CharName + " has " + CharHP + " Hitpoints left");
              if (MonsterHP == 0) {
                   System.out.println(CharName + "Has lost the fight!");
                   CharEXP = CharEXP + 20;
                   System.out.println("You have gained " + CharEXP + " Exp");
              if (CharHP == 0) {
                   System.out.println("You have lost the fight!");
              return CharHP;
         }So what would be the code to print all the "System.out.println's" here into the gui test area?

    camickr wrote:
    Check out the [Message Console|http://www.camick.com/java/blog.html?name=message-console].
    Just out of curiosity, how do you come up with ideas for all the awesome stuff on your blog?

  • Unload and stop question

    I need to use the unload and stop method.  But  my actionscript code calls individual swf files which contain 1 video player  each. How would I add the unloadandstop methods into the  existing actionscript?
    First question, add this code to the main.swf that is calling the swfs with thre players correct?
    So far I would I add a second set of event listeners for this function, like this?
    home.addEventListener("click",afterClick);
    bio.addEventListener("click",afterClick);
    commercial.addEventListener("click",afterClick);
    films.addEventListener("click",afterClick);
    videomontage.addEventListener("click",afterClick);
    contact.addEventListener("click",afterClick);
    function afterClick(e:MouseEvent):void
       unloadAndStop(what goes here?);
    if so write separate functions for each swf being called? or call the same code
    the variable remove child calls below?
    ("swfs/" + event.target.name + ".swf");
    EXISTING CODE
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/home.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
        removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChild(loader);
    // Btn listeners
    home.addEventListener(MouseEvent.CLICK, btnClick);
    bio.addEventListener(MouseEvent.CLICK, btnClick);
    commercial.addEventListener(MouseEvent.CLICK, btnClick);
    films.addEventListener(MouseEvent.CLICK, btnClick);
    videomontage.addEventListener(MouseEvent.CLICK, btnClick);
    contact.addEventListener(MouseEvent.CLICK, btnClick);

    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/home.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
        if(loader.content){
    loader.unloadAndStop();
       removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChild(loader);
    // Btn listeners
    home.addEventListener(MouseEvent.CLICK, btnClick);
    bio.addEventListener(MouseEvent.CLICK, btnClick);
    commercial.addEventListener(MouseEvent.CLICK, btnClick);
    films.addEventListener(MouseEvent.CLICK, btnClick);
    videomontage.addEventListener(MouseEvent.CLICK, btnClick);
    contact.addEventListener(MouseEvent.CLICK, btnClick);

  • Looking to create archive system to replace Thumbsplus have questions

    Hi all,
        I need to have these questions answere so I know if I can switch my archiving system from Thumbsplus to Lightroom. FYI: My archiving sytem has worked for me for about 12 years & I need the following functions or a work around.
    Can lightroom read files within a zipped folder? If not is there a pluggin for that?
    I give names to my CDs. In Thumbsplus I can see a list of my offline CDs. Does Light room have something similar? FYI: I Imported the files from a CD and something funny happened. When I click on the arrow iin the Folders Panel (in lightroom) I don't see the name of the CD, instead I see the names of the folders that were on the CD. Ideally I would click on the arrow iin the Folders Panel (in lightroom) and see the names of the CDs that were imported. Am I being clear? Is there a solution to this?
    Can I convert psd files to jpegs
    I also need the ability to type a name of a file and find which offline CD it's on (like thumbsplus does).
    In Thumbs  plus if I go to a folder and there are thumbnails that weren't created it shows be a blank box with an X with the name of the file under it. This is a great benefit to my art studio. We have a large art studio and alot of artists forget to make the thumnails - they see the blank boxes and know they have to create them. Does lightroom have a similar feature. If this is so can I make thumbnails of individual files (the blank ones with the Xs in them).
    Is the a way of saving the entire database offline. I need this in case I my system crashes or If I want to transfer my offline CD thumbnails to another pc (that has lighrooom installed).
    If any has the time to answer these questions it would be greately appreciated. Please try to explain in simple terms.
    PS: Also if I'm off base with my ideas on how to use lightroom to archive things, can someone please steer me towards an archiving program that addresses these issues?
    Thanks,
    Frederick
    Thanks,
    Frederick

    www.migcalendar.com.
    But this is not a free software. After completion of ur deveopment please inform us.

  • System image utility, netinstallation size question

    Just got an Xserver for the office, and we've had success imaging a few mac mini computers. My question is, does the system imaging utility compress the netinstall image? We have several labs
    (20+ Mac's) in several configurations i.e new and old Mac Pro's/G5/G4, new and old iMac's/eMac's. Our range of Mac's are broad, and i'd like to create image's for each department that needs them. Mass Communications, Visual Arts, and Performing Arts. All will have different software needs. Should i create a base image, and then push out applications with ARD? The image that i recently made of an iMac has MS office 2008, Logic Studio, and Adobe CS3 it was nearly 70GB's. I was banking on maybe 8 - 10GB's, or at least some kind of compression. Yes, i've read about NetRestore, but like others, i'd rather stick with Apple Software.
    Most of the main labs on campus has newer Mac's, and honestly i could care less about the eMac's and G4's; they're on the list to retire anyway. My main concern is the ability to create and deploy a custom image for the latest Mac Pro's and iMac's.
    Thanks,
    Patrick

    I gather you are making NetInstall from volume images. Looking at one of mine, I see that asr image is 3.47 GB, while the mounted image is 7.55 GB. So, yes, in this scenario the image is compressed.
    70 GB seems rather large... especially if it's compressed. I suppose it's possible that the items you note could add that much bulk, but that seems like a lot... Office is only about 846 MB on my system. You might want to check your source volume for large, unexpected, items like caches, databases, etc. and see where that bulk is coming from.

  • X-Fi system requirements? a moderator question ma

    Hi!
    It's been some time since my last post. Back in the old Audigy times
    now to my question.
    Must i really have SP2 for Windows XP to get the X-Fi working? i see the SP2 as a downgrade of the system feeling i loose some control to windows itself. Please tell me i only need SP.
    Thanks.
    Dalthor

    Dalthor,
    SP2 introduces many systemwide changes to the operating system, because the X-Fi uses some of these modifications it is a requirement for the card.
    Jeremy

Maybe you are looking for

  • ICal alarms wont work at all

    So I have leopard on a Mac Pro. I cant get iCal to give me anysort of alarm, at all. I have tried all the different alarms (email, message, message with sound, open file, etc), and nothing. I have also tried all combos on multiple calendars, iCal ope

  • Agents in the User Decision

    Hi Experts, We are implementing the Leave Request WF using WS12300111. We have a user decision step. This is for the HR admin to take a decision if a manual posting has been successful or not. There is already a rule 60100010 which has the responsibi

  • Outlook in workgroup scenario not working.. please help

    Dear Concerned, i am System Engineer; i want to ask is that we are running windows xp SP3 on a workgroup network which is some how connected to the application servers or domain, IPs are assigned by client dhcp server, we can access webmail but we ca

  • Lync for Mac 2011

    Hi All, Having an issue logging into my Office 365 Lync service. I have on-site exchange and I'm a bit confused about how to proceed in terms of what goes where: Email Address: [email protected] Office 365 Address: [email protected] Now, on the PC I'

  • Can we change MRP Run results after executing MRP. Can anyone tell me how?

    Hi, I want to change MRP rum planning results after executing MRP run. Is this possible?? Regards, Thomas