Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1610] Custom TableViewRows created with Alloy are not released from memory

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-29T05:04:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
LabelsTableViewRow, alloy, andoid, controller
ReporterFrancois Brosseau
AssigneeShak Hossain
Created2015-03-15T20:46:28.000+0000
Updated2016-03-08T07:38:05.000+0000

Description

Test code:
 


	data  = database.searchExercises(value); 
	
			for (var i=0; i<data.length; i++) {    
    		var arg = {
      			  title: data[i].title,
      			  type: data[i].type,
      			  className : 'row'
      		};
      		
   			 var row = Alloy.createController('row', arg).getView();
   			
    		tempData.push(row);
    		
		}
	
	
		$.searchResults.setData(tempData);
<Alloy>
    <TableViewRow id="rowView" className="row">
    	<View id="containerView"> 	
    	 <Label id="rowLabel"></Label>
    	 <View id="optionView"><View id="toolsView"></View></View>
    	</View>
    </TableViewRow>
</Alloy>

Comments

  1. Francois Brosseau 2015-03-15

    I'm having the same problem with IOS, maybe I'm doing something wrong ..
  2. Shuo Liang 2015-03-18

    HI, Please provide a simple test case to reproduce your problem, that will be really helpful to address the problem. Here is the guide about [how to create a teat case for JIRA ticket](http://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-CreatingaTestCase). Thanks Regards, Shuo

JSON Source