Memory Handling Question

0 views
Skip to first unread message

Kiran Kumar Vasireddy

unread,
Nov 24, 2009, 2:31:33 PM11/24/09
to Flex India Community
Dear All

I am working on a application which has

1) Home page ( Canvas with few controls)
2) Login page ( Vbox and have 19 panels and also some some video components attached to panels)

To login :-  I am removing the Canvas Child and adding login page to Application ( this.removeAllChildren(); this.add(vBox))
To Log out :- Deleting Vbox and adding canvas to it  ( this.removeAllChildren(); this.add(canvas))

Problems

1) After login to the application I am doing few operations and clicking on  signout link and then logining again .In this case the memory is almost doubling
2) After login to the application and playing some videos and in between the videos just clicking on signOut , But still on the home I can listen the voice of video playing ( Even after removing all the components)

Is there any way I can clean up all the resources after clicking on signOut? ( I am even assigning Null to the variable holder of Vbox)

Regards
Kiran


Vaibhav Seth

unread,
Nov 24, 2009, 3:41:57 PM11/24/09
to flex_...@googlegroups.com
You have to explicitly stop the video controls and remove the listeners as well from the VBOX.
You can also use a your login component as a separate module and load unload it as required.



--

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



--
Thanks,
Vaibhav Seth.
Reply all
Reply to author
Forward
0 new messages