2 Replies Latest reply on Nov 11, 2009 9:47 AM by Flex harUI

    When trying close PopManger TitleWindow getting RangeError: Error #2006

    isnraju

      PopUpManager.removePopUp(twContent);

      twContent.visible=false;

      editContent(selectedID, selectedName);

       

      twContent is a mxml TitleWindow control and editContent is custom function.

       

      For above code am getting following error randomly and the application screen is getting blank

       

       

      RangeError: Error #2006: The supplied index is out of bounds.

      at flash.display::DisplayObjectContainer/getChildAt()

      at mx.core::Container/getChildAt()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ore\Container.as:2334]

      at mx.containers.utilityClasses::CanvasLayout/measure()[C:\autobuild\3.2.0\frameworks\projec ts\framework\src\mx\containers\utilityClasses\CanvasLayout.as:193]

      at mx.containers::Canvas/measure()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\c ontainers\Canvas.as:308]

      at mx.core::UIComponent/measureSizes()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:5956]

      at mx.core::UIComponent/validateSize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:5902]

      at mx.core::Container/validateSize()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx \core\Container.as:2659]

      at mx.managers::LayoutManager/validateSize()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:579]

      at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:668]

      at Function/http://adobe.com/AS3/2006/builtin::apply()

      at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]

      at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568]

       

       

       

      Please help...