Skip navigation
Currently Being Moderated

ArrayCollection removeAll() causes crash

Sep 11, 2012 3:46 AM

Hi

 

arrayCollection.removeAll() causes a crash, its is asssigned to a AD grid :

 

 

                         dataProvider="{clientSessionModel.processedOrders}"

 

 

 

 

public function set processedOrders(value:ArrayCollection):void

        {

            trace("_processedOrders set.");

           _processedOrders.removeAll();

            _processedOrders.source=value.source;

       

        }

 

any idea friends?

 
Replies
  • Currently Being Moderated
    Sep 11, 2012 8:02 AM   in reply to nikos101

    Maybe because it's bound to the grid at it's crashing. How about just = new ArrayCollection()

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 11, 2012 9:31 AM   in reply to nikos101

    What is the stack trace?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 12, 2012 9:16 AM   in reply to nikos101

    You sure that’s the full stack?  I’m wondering if you are causing a loop?  Or maybe it is just take a long time to recompute the groupings?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points