Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1583

Using baseController causes memory leak ?

    Details

      Description

      I test my code for memory leaks. When I use exports.baseController I can't to make sure that memory fully released. Not all proxy removed from memory after closing test window.

      Why it happens and how to deal with this behavior?
      The situation is complicated by using a more complex controller with a many of child Views.

      testWindow.xml

      <Alloy>
          <Window>     
              <Label>Close this window and then create second HPROF dump. Then compare difference against two dumps.</Label>    
          </Window>
      </Alloy>
      

      testWindow.js

      exports.baseController = "myBaseController";
      

      index.js

      function doClick(e) {
          Alloy.createController('testWindow').getView().open();
      }
       
      $.index.open();
      

      index.xml

      <Alloy>
      	<Window class="container" layout="vertical">
      	    <Label>Create first HPROF dump now</Label>
      		<Button id="label" onClick="doClick">Click to open test window</Button>
      	</Window>
      </Alloy>
      

      myBaseController.js

      var args = arguments[0] || {};
      

      myBaseController has only js file, no myBaseController.tss or myBaseController.xml defined.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              falko Andrey Tkachenko
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration