3 Replies Latest reply on Apr 23, 2010 4:35 PM by Flex harUI

    PopupManager Titlewindow and Garbage Collection


      I am using flex builder 4 and I am trying to simply remove all instances of a Titlewindow opened in a modal using the PopupManager.  After opening the popup I always have 1 instance of it while doing profiling.  I went as far as to remove everything from the titlewindow and I still have the same issue.


      Here is the code I am using to show the popup:

                     private var userInfoDialogue:UserInfo;
                     public function ShowUserInfoModal(userID:int, windowText:String):void{
                          //If the modal was created before no need to create it again
                               userInfoDialogue= new UserInfo();
                     protected function ClosePopup(event:Event):void


      Here is what my Titlewindow looks like:

      <?xml version="1.0" encoding="utf-8"?>
      <s:TitleWindow name="userInfo"
                        width="680" height="530"