1 Reply Latest reply on Jul 22, 2010 10:56 PM by Flex harUI

    Error #1034 sometimes on resize.

    Daniel Freeman

      I'm involved with a large Flex project, and someone is seeing the following error sometimes when they resize the browser:-

       

      TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::FlexShape@1110b971 to mx.core.IUIComponent.

      at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::createContentPane()[E:\dev\4.0.0\frameworks\pr ojects\framework\src\mx\core\Container.as:5411]

      at mx.core::Container/createOrDestroyScrollbars()[E:\dev\4.0.0\frameworks\projects\framework \src\mx\core\Container.as:5158]

      at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\4.0.0\frameworks\projects\framework\ src\mx\core\Container.as:5107]

      at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\4.0.0\frameworks\proje cts\framework\src\mx\core\Container.as:4904]

      at mx.core::Container/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framework\src\m x\core\Container.as:3289]

      at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]

      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:736]

      at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]

      The diagnostics aren't very helpful, as it all happens internally within the layout cycle.  No hints where it relates to our classes.
      Has anyone else seen this?  Has anyone solved it?