Remove MXML Component reference from memory

Hi Folks,
     I have a problem with component reference when it is open by PopupManager.
I opened the mxml file thru PopupManager and close using PopUpManager.removePopup() method. But the reference of the mxml file still in the memory. If I opened it again and again means i have experienced performance issue.
Have anyone solve this problem should be much appreciated.
Thank You
Arun P. Ganesh

Hi Arun Ganesh,
You also need to remove all the eventListeners associated with the PopUp before you close your PopUp. Otherwise you wil faced the performance issue the same way you are facing since the eventListners associated with the PopUp will not be removed when you close your PopUp instead you manually need to remove all the Listners before you close your popup otherwise your old listeners in adddition to new listeners exist as how many times you open and get multiplied.
You can also refer to the thread that I have posted.
http://forums.adobe.com/thread/670772
http://forums.adobe.com/message/3293012#3293012
Thanks,
Bhasker Chari
Message was edited by: BhaskerChari

Similar Messages

  • Remove or delete vi from memory

    I am running a vi which will run ok the first time I run it but doesn't execute correctly subsequent times.  If I close the vi (return to labview startup screen) and reopen it, then it works again.  The vi in question uses labpython to run some python code.  It is not possible for me to change this code, which is where the underlying bug must be located.
    Is it possible to remove or delete a vi from memory similar to closing vi and returning to labview start screen?  I know this isn't elegant and will be slow, but it seems my only option.
    I am using Labview 2009 SP1
    Cheers
    Ian 
    Solved!
    Go to Solution.

    Hi everybody,
    Thanks for your help.
    Problem solved.
    I had an instance of the VI that I was trying to dynamically open hidden in a case structure, once removed it all works great.
    I have attached a copy of vi for anybody else who may have similar issues.
    Cheers
    Ian
    P.s. The Get vis in memory is a vi I found on the forum which is very useful.
    Attachments:
    dynamic opening.vi ‏19 KB
    Get_VIs_in_Memory.vi ‏20 KB

  • How to remove/destroy previous object from memory

    hi guys, I am getting problem of memory of having repeating object.
    Below is my code.
    import flash.system.System;
    var counter:Number=0;
    var systemMemory:TextField=new TextField();
    systemMemory.x=200;
    stage.addEventListener(Event.ENTER_FRAME,showNext);
    function showNext(event:Event){
        var myTxt:TextField=new TextField();
        myTxt.text=counter.toString();
        myTxt.width=100;
        myTxt.height=20;
        myTxt.x=Math.random()*100;
        systemMemory.text="Total Memory Used :"+System.totalMemory.toString();
        systemMemory.width=300;
        addChild(systemMemory);
        addChild(myTxt);
        counter++;
    Above code does repeat textField Object continuously. Now I want to destroy previous created textField Object. So that my memory will not be hang. I got some where in the blog that with System.gc()  could clear garbage collection. But currently I am not working with system.gc any more I want to clear previous object in programatically way. Is there any way that I could destroy previous created object ?

    ok, thanks for your kind replay. Above is my test case. Actually, I need to do show 4 texfield in each FRAME_ENTER with different text properties's value + previous textFields should be remove and comes next 4 textField.
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.display.Stage;
    import flash.events.Event;
    import flash.system.System;
    var frameNo:Number=0;
    var txtFieldGroup:Array=new Array();
    var mem:TextField=new TextField();
    stage.addEventListener(Event.ENTER_FRAME,showTxtFields);
    function showTxtFields(event:Event):void{
        var eachGap:Number=100*frameNo;
        /* Removing data from txtFieldGroup if there any data */
        if(txtFieldGroup.length>0){
            txtFieldGroup.length=0;
        /* created textField objects and set it in an array */
        for(var i:Number=0; i<4; i++){   
            /*txtFieldGroup[frameNo][i]=frameNo.toString()+":"+i.toString();*/
            txtFieldGroup[i]=new TextField();
            txtFieldGroup[i].text=frameNo.toString()+i.toString();
            txtFieldGroup[i].y=(20*i)+eachGap;
            addChild(txtFieldGroup[i]);
        // System Memory Message
        mem.text="System Memory: "+System.totalMemory;
        mem.x=250;
        mem.width=300;
        addChild(mem);
        // Frame No increment
        frameNo++;
    here, from above script it created 4 txtObject in each frame no. I have clear array in each frame no. But I could not remove textFieldObject from CPU Memory. As you can see textField object of mem. As you say in earlier post making 4 different textfield at initialy  is nice option to control over CPU Memory. Is there any technique so that I could remove previous created textField object because . I am also having problem why my textfields are shows more than 4. I was expecting only 4 textField in each frame. Please you suggestion is required. Thanks for studying my confusion.

  • Is it possible to remove unseen font references from an .fm file?

    We have used a Framemaker book template that was created about 15 years ago to create technical manuals. We've modified this template many times. It's pretty complex, but the main purpose is to keep the appearance, structure, etc., consistent among mulitiple writers. It works well.
    We originally used Times and Helvetica as the primary fonts. Now we're using other fonts. It was a tedious job to replace all the instances of Times and Helvetica in the Paragraph and Character designers.
    Here's the problem:
    Theoretically, these fonts should be gone.
    But if I open the template files, even with no content, I get this message in the Frame Console:
    xxx Font is not available.               (where xxx is Helvetica or Times or variants)
    zzz will be used in this session.
    I didn't see this problem until today, because my computer was just reimaged by IT and so I no longer have these (Postscript) fonts installed. Frame thinks these fonts are still used in the various .fm chapters. But, it should not need them.
    I got to thinking about how old our template is and so I "examined" one of the template files, chapter.fm. I renamed the file chapter.txt and was able to open in with Notepad. I found about 40 references to Helvetica buried in Frame's code (some of it "machine language"). This was certainly revealing. My real question is, is there anyway to purge the files of these font references? The file structure is totally complex and I would not think of editing these files. I'm sure this would not work, and Adobe would probably arrest me if I did.
    Is there a MIF editor or similar that could do this?
    I could reinstall these fonts as a workaround, but they're really not used and so I would rather purge the font references if I can.
    Someone may say: Create a new template. If we did, we would want it to be the same as the one we have. It is complex enough that we just cannot take the time to do this. It would take days and days.
    Thanks for any help.

    Bill,
    Many years ago I had a similar problem. I solved it by saving the file to mif and then opening the mif file with NotePad or WordPad, then searching for instances of the old font. These usually appeared as a toggle on and a toggle off without any text between them. So, I deleted them and opened the mif file and saved back to fm. I did not take the opportunity to determine exactly where these instances were in the file. They can be anywhere..body pages, reference pages, master pages, etc.
    NOTE that if you take the above route and then import your template into existing files, the instances in existing files will still be there because it cannot copy in something that does not exist.
    When you say, "This will blow away the old references," do you think it would get rid of the numerous references that are unseen in the .fm file (unless you look at it in Notepad)?
    No, the references are still there, but you have changed them to a different font, one that is on your system. Arnis' point is that this is a simple way to get rid of the console messages because the assumption is that such font references do not display in your document so are likely inocuous.
    Van

  • Clean viewmodel from memory when their associated pages are removed from backstack

    In my WP8.1 universal application there are a few pages say - A, B, C which are associated with their respective ViewModels - VMA, VMB, VMC. When the user reaches page C, I want to remove page B from backstack as well as remove its ViewModel (VMB) from
    memory .
    The result should b A->C
    I am able to remove the page from backstack by setting the navigation state of the frame. How to remove the viewmodel reference to prevent memory leak? The associated viewmodel is subscribed to global events like HardwareButtons.BackPressed, how to
    unsubscribe to such events?
    I am not using any framework for MVVM.

    1. Why should the back button be restricted to app.xaml.cs only? It may be that some functions in the view-model depend on back button. example closing of popup or switching between semantic zooms (jumplist view to full list view). Given that, I have handled
    it in App.xaml.cs
    private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
    if (!BackHandled && this.GoBackCommand.CanExecute(null))
    e.Handled = true;
    this.GoBackCommand.Execute(null);
    else
    BackHandled = false;
    and in my viewmodel I do this:
    private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
    if (IsCountryListVisible)
    App.BackHandled = true;
    IsCountryListVisible = false;
    e.Handled = true;
    return;
    2. I took the back button event as an example. My viewmodels may be subscribed to a pubsub/eventbus event which I want to unsubscribe. Another example is disposing or clearing undisposed members/cache.

  • Delete component query from a super query

    Hi Experts,
    I need to delete a component query from a super query. Can Any one give the steps to persue..
    Thanks,
    Pilliga

    Hi,
    When you load the super query, the query is displayed in a tree-like structure and the queries are referred to as branches.
    In order to remove a component query from the super query, you must first select the parent operation (i.e. join or append), right click and select Delete Operation. You will then be prompted with a dialog box where you can specify to delete either the top or bottom branch (i.e. top or bottom query).
    Cheers,
    Tanish

  • Remove bad dll reference after content data migration sharepoint 2007 - sharepoint 2010

    I have 400 subsites under one root site and we need to remove one DLL reference from default.aspx Home page of each sub site.
    Assmbly ref like this.
    <%@ Register TagPrefix="WpNs0" Namespace="DS.DSQueryWebPart" Assembly="DS.DSQueryWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=709ed70a96eaa5cb"%>
    This assmebly is not used anywhere .
    This assembly is reflecting in subsite default.aspx after the content database migration sharepoint 2007 to sharepoint 2010.
    Is there any way we can remove this bad reference through database query or any other way around
    sarav

    Hi,
    If are sure that this is the only customization in the default.aspx page, then you can safely  go into Site Settings -> Site Actions -> Reset to site definition -> Select Reset specific page to site definition version and enter the default.aspx
    page url. This will replace the customized page with the original site definition page. The process can be automated using PowerShell/C# Code. Here is an example:
    using (SPSite site = new SPSite("http://aissp2013/sites/Team/"))
       foreach(SPWeb web in site.AllWebs)
      using(web)
      SPFile file = web.GetFile(web.Url + "/default.aspx");
      if (file.Exists)
      file.RevertContentStream();
    The main part here is to get hold of the default.aspx file and use RevertContentStream() to reset it to site definition page.
    However, if there are other customizations as well, then you will need to get hold of the Project or WSP file and remove the reference there and then run update-spsolution powershell command to update to new WSP.
    Thanks,
    Nadeem
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • Way to unload FM group from memory

    hi experts,
    Is there any way to remove fm group from memory and reload it into memory mannual in the components of the fm group?
    I set up a workflow and create a fm group to work for the workflow. A task in workflow calls a BO's method which calls a fm of the FMgroup for a user dialog. The user dialog screen belongs to the same fm group.
    But I found in business workplace(SBWP), when the previous workitem completed , that is, the user finish his screen, the FMgroup is not removed from memory. I think it is because the calling program, the business workplace, didn't end. So I wonder is there any way to remove the fm group from memory mannaully?
    thx!

    In Java who unload objects of memory is the Garbaga Collection.
    But we can help the G.C. doing the object eligible to be unload. For example.:
    class InfoData{
    class A{
    public static InfoData id = new InfoData();
    ... do something with id ...
    public void aMethod(){
    id = null; //do the static object elgible to be collected by G.C. !!!
    }

  • Mxml.cfswf - remove from memory

    I have a client that found a link to a flash form swf (ie.
    23423452.mxml.cfswf) on Google and wants the form removed. Problem
    is that since the swf is only in memory (I belive that's how flash
    forms are created) and not in the filesystem, so I can't just
    delete it.
    Any advice on how to remove this swf. Will restarting the CF
    Server (MX7) work? I would prefer not to do that, but haven't a
    clue on what else may help.
    Thanks.

    Okay, I was able to remove flash form swfs from the server
    (.cfswf), but only by restarting the ColdFusion service - that
    seemed to clear them.

  • Remove / unload external swf file(s) from the main flash file and load a new swf file and garbage collection from memory.

    I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
    This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/Down3()"
    import nl.demonsters.debugger.MonsterDebugger;
    var d:MonsterDebugger=new MonsterDebugger(this);
    stage.scaleMode=StageScaleMode.NO_SCALE;
    stage.align=StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, resizeHandler);
    // loader is the loader for portfolio page swf
    var loader:Loader;
    var loader2:Loader;
    var loader3:Loader;
    var loader1:Loader;
    //  resize content
    function resizeHandler(event:Event):void {
        // resizes portfolio page to center
    loader.x = (stage.stageWidth - loader.width) * .5;
    loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    /*loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;*/
    addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
    function onEnterFrame(ev:Event):void {
    var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
    loader = null;
    loader = new Loader();
    loader.name ="carousel1"
    //adds gallery.swf to stage at begining of movie
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requesterb);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    // stop gallery.swf from duplication over and over again on enter frame
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent):void {
    // re adds listener for contact.swf and about.swf
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
    var requester:URLRequest=new URLRequest("carouselLoader.swf");
        loader = null;
    loader = new Loader();
    loader.name ="carousel"
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    removeChild( getChildByName("about") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of gallery.swf
    MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    function Down1(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    var requester:URLRequest=new URLRequest("contactLoader.swf");
    loader2 = null;
    loader2 = new Loader();
    loader2.name ="contact"
    loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader2.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader2);
    loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    function Down3(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    var requester:URLRequest=new URLRequest("aboutLoader.swf");
    loader3 = null;
    loader3 = new Loader();
    loader3.name ="about"
    loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader3.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader3);
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    removeChild( getChildByName("carousel") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
    stop();

    Andrei1,
    Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
    "TypeError: Error #1009: Cannot access a property or method of a null object reference."
    I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
         loader.unload();
         loader2.unload();
         loader3.unload();
    I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
         function killLoad():void{
         try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
         loader.unload(); loader2.unload(); loader3.unload();
    I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly?  Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
    ---- Here is my updated code ----
    // variable for external loaders
    var loader:Loader;
    var loader1:Loader;
    var loader2:Loader;
    var loader3:Loader;
    // makes borders resize with browser size
    function resizeHandler(event:Event):void {
    // resizes portfolio page to center
         loader.x = (stage.stageWidth - loader.width) * .5;
         loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
    //adds gallery.swf to stage at begining of moviie
         Down();
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent = null):void {
    // re adds listener for contact.swf and about.swf
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
         var requester:URLRequest=new URLRequest("carouselLoader.swf");
         loader = new Loader();
         loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader.load(requester);
         } catch (error:SecurityError) {
         trace(error);
         this.addChild(loader);
         loader.x = (stage.stageWidth - 739) * .5;
         loader.y = (stage.stageHeight - 500) * .5;
    // sure this is not the best way to do this - but it is unload external swfs
         loader.unload();
         loader2.unload();
         loader3.unload();
    // remove eventlistner and prevents duplication of gallery.swf
         MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         function Down1(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         var requester:URLRequest=new URLRequest("contactLoader.swf");
         loader2 = null;
         loader2 = new Loader();
         loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);    
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader2.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader2);
         loader2.x = (stage.stageWidth - 658.65) * .5;
         loader2.y = (stage.stageHeight - 551.45) * .5;
    loader.unload();
    loader2.unload();
    loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         function Down3(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         var requester:URLRequest=new URLRequest("aboutLoader.swf");
         loader3 = null;
         loader3 = new Loader();
         loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader3.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader3);
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
         loader.unload();
         loader2.unload();
         loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
         stop();

  • Does PopUpManager "close" event remove PopUp from memory?

    I'm using a lot of popup windows (in addition to tooltips) in an application.  Does the PopUpManager's close event remove the popup from memory?  If not, I'd like to find out how this could be done.
    Thanks.

    on close, you need to call PopupManager.removePopup(this) here this is the popup. and make sure that this popup does not have any strong references/event handlers listening to custom events /events

  • DataGrid SelectedIndices from a different MXML component

    Hello
    I am refreshing a data grid that resides in my main component, from a sub-component. This works if I invoke the web service method to rebind the dataprovider, and I do not reference the datagrid directly from the sub component.
    My trouble is that I use checkboxes in my datagrid. I need to reset the selectIndices of the datagrid, but anytime I try to reference the datagrid directly it is NULL. The datagrid loses its checkbox selections every time I call the refresh, so I must explicitly reset the selectedIndices.
    How can I reset the datagrid's selectedIndices from a different MXML component? Why is my datagrid always NULL in my web service's result event handler?
    How can I directly reference my main component's datagrid, from my sub-component?

    Hi Devtron,
    You can figure this out by using events..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete();" xmlns:comp="comp.*">
    <mx:Script>
      <![CDATA[
       private function onCreationComplete():void
        comp2.addEventListener("refreshGridEvent",refreshGrid);
       private function refreshGrid(event:Event):void
        comp1.dataGrid.dataProvider = null;
      ]]>
    </mx:Script>
    <comp:Component1 id="comp1" />
    <comp:Component2 id="comp2" />
    </mx:Application>
    Now in your Component2 dispatch the refreshGridEvent event either on a button click or when your UI elements changes based on your requirement...this.dispatchEvent(new Event('refreshGridEvent')); and listen for the evet in manin mxml file and change the dataProvider of the dataGrid in Component1.
    Note: This solution is if your both components are placed in the main mxml file. Is your structure is same as I mentioned in the code above..I mean
    whether your two components are placed in the main mxml file.
    Thanks,
    Bhasker

  • I would want to capture the reference of memory of a generic component ?

    I would want to capture the reference of memory of a generic component
    example1 ->{javax.swing.JScrollPane@678 }
    example2 ->{javax.swing.JTextField@577 }
    ecc..
    Thanks

    I would want to capture the reference of memory of a
    generic component
    example1 ->{javax.swing.JScrollPane@678 }
    example2 ->{javax.swing.JTextField@577 }
    ecc..
    Thanksuse an Objectit is the closest thing in the language to a memory reference
    all EventListeners have a getSource() method that yields an Object
    Furthermore anything allocated with new descends from Object
    For example, lets say you added the same ActionListener to 3 different buttons
    You could test which button triggered the action as follows
    Let e be the ActionEvent passed to the ActionPerformed method of an ActionListener
    if (e.getSource().equals(jButtonOne)){; // jButton1 actions
    } else if (e.getSource().equals(jButtonTwo)){;//jButton2 actions
    } else if (e.getSource().equals(jButtonThree)){;//jButton3 actions
    }The equals method of Object is the Java idiom for comparing memory references.

  • How do you remove STATEFUL components from memory in EAServer?

    This is from one of the books on Powerbuilder/EAServer:
    "So the major difference between stateless and stateful components is that stateless components
    automatically invoke the component deactivate event when a method call ends and the component
    is logically removed from memory. A stateful component remains in memory until physically re-
    moved by the caller."
    What does the caller (client Powerbuilder program) do to physically remove a stateful component from EAServer?
    Thanks,
    Mark

    Hi Mark
    Not sure...
    Do you know the component is in memory because memory hasn't been released?
    In which case you could check that the destroy event happens and use it to explicitly clean up.  This should really be in the deactivate event in case you do start pooling.
    From memory, (pardon the pun) there were memory leaks in EAServer version 10 years ago. A very small part of a component could take up lost space, eventually leaving only smaller and smaller chunks free, ultimately causing decline in performance and failure.
    Do you know the component is in memory because Jag Manager tells you after you have refreshed to folder?
    Lars

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

Maybe you are looking for

  • Interest calculation on vendor down payments

    With reference to above subject, I have configured all the settings, after that i was executed vendor interest calculation in F.4A, system showing batch in put session created.But it is not showing intrest break up... after that I had run the batch i

  • I have a paid account to convert pdf's to Word. How do I do it?

    I paid for a yearly subscription to convert pdf's to Word files. But I cannot find out how to do it. I clicked on many things, but cannot find the screen for making the conversion. Please help.

  • Require a function module to add days to a date?

    My purpose is to add days to a particular date and get the resulting date. I tried using this function module "RP_CALC_DATE_IN_INTERVAL", but the problem is this function module only accepts two digits for days. i.e. i am only able to add a maximum o

  • After Effects crash to open

    Faulting application name: AfterFX.exe, version: 11.0.4.2, time stamp: 0x52886341 Faulting module name: AfterFXLib.dll, version: 0.0.0.0, time stamp: 0x52888ba6 Exception code: 0xc0000005 Fault offset: 0x000000000072e40f Faulting process id: 0x492c F

  • Flex Compiler Question

    Hi, I have several PHP Scripts that I use with my Flex App. I have the PHP files in a subdirectory 'PHP/'. However, when I compile the Application the PHP files are overwritten and are blank. I tried placing the PHP directory in the 'src' source fold