Garbage Collection is back :)
Akshar, try finding out some earlier posts, that had many solutions for
forceful garbade collection - setting weakReference= false, removing
variables, etc.

For your arrayCollection, try setting it to null.


Thanks,
Gaurav.

On Wed, Mar 3, 2010 at 5:53 PM, Debabrata Acharjee <[email protected]>wrote:

> Well, that's interesting. Could you please send post/send the sample
> code here. I will try to have a look to this.
>
> On Mar 3, 5:11 pm, Akshar <[email protected]> wrote:
> > i tried both datagrid.dataProvider.removeAll() as well as
> > arraycollection.removeAll().
> > still the result is same.
> > with the profiler in eclipse i am forcing garbage collection.
> >
> > On Mar 3, 5:00 pm, Debabrata Acharjee <[email protected]> wrote:
> >
> > > Also note that you can not predict the execution time of garbage
> > > collection process. Flash player will run this as and when required.
> > > You may call System.gc() to force it.
> >
> > > On Mar 3, 4:50 pm, Debabrata Acharjee <[email protected]> wrote:
> >
> > > > 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
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