Instead of assigning an empty array to the collection, try  the below:

dg.dataProvider.removeAll();

On Mar 3, 4:44 pm, Akshar <[email protected]> wrote:
> i am using arraycollection.source = new array();
>
> On Mar 3, 4:38 pm, Debabrata Acharjee <[email protected]> wrote:
>
> > Hi Akshar,
>
> > >Whenever user moves from one
> > >child of the viewstack to another child i clear the ArrayCollection
> > >in the model
>
> > Could you please tell me how are you clearing the ArrayCollection?
>
> > Regards,
> > Debabrata
>
> > On Mar 3, 4:03 pm, Akshar <[email protected]> wrote:
>
> > > i am using cairngorm model in my project. I have a viewstack in which
> > > i show various components depending upon user interaction. the data
> > > for the components comes from the model. Whenever user moves from one
> > > child of the viewstack to another child i clear the array collection
> > > in the model used to populate the datagrid in the previuos component.
> > > But when i checked in the eclipse profiler there were still some
> > > objects that were taking the memory. The number of these objects was
> > > equal to the rowcount property of the datagrid.
> > > Any help on how these objects can be deleted.
>
> > > Any help will be appreciated.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to