0 Replies Latest reply on Jan 11, 2012 6:36 AM by kkudiksx

    ListBase.setSelectionDataLoop - infinite loop

    kkudiksx Level 1

      Hi

       

      My problem is very similar to http://forums.adobe.com/thread/823041

       

      I have a Tree data structure whereby its dataprovider changes after a filter function is applied.

       

      The dataProvider is bound and it changes when a custom event is dispatched.

       

      The filtering works and the filtered items are shown on the screen in the tree, but when I try to select the item after the dataprovider has changed the browser freezes and I get the following stacktrace when debugging (the same stacktrace as the thread 823041)

       

      [Fault] exception, information=Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.

      at mx.controls.listClasses::ListBase/setSelectionDataLoop()[E:\dev\4.5.1\frameworks\projects \mx\src\mx\controls\listClasses\ListBase.as:7380]

      at mx.controls.listClasses::ListBase/commitSelectedItems()[E:\dev\4.5.1\frameworks\projects\ mx\src\mx\controls\listClasses\ListBase.as:7314]

      at mx.controls.listClasses::ListBase/commitSelectedItem()[E:\dev\4.5.1\frameworks\projects\m x\src\mx\controls\listClasses\ListBase.as:7279]

      at mx.controls.listClasses::ListBase/set selectedItem()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.a s:3466]

      at com.db.lrc.creditrisk.common.controls::SelectionTree/visiblySelectItem()[C:\dev\upgrade-f lex-branch\crcommon-upgrade-flex-branch-andreas\common-flex-controls\src\main\flex\com\db\ lrc\creditrisk\common\controls\SelectionTree.as:35]

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

      at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\4.5.1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:12208]

      at mx.core::UIComponent/callLaterDispatcher()[E:\dev\4.5.1\frameworks\projects\framework\src \mx\core\UIComponent.as:12146]

       

      I have tried calling validateProperties() just like eprevot123 suggested but to no avail.

       

      I have also found this thread http://forums.adobe.com/message/777903#777903 which suggests to use validateNow()  but it still doesn't work.

       

      Any suggestions?

       

      I'm using Flex 4.5.1

       

      Is this a bug with the SDK?