PDA

View Full Version : combobox Memory Leakage ..?



dave0224
28 Jun 2007, 5:15 PM
this is my code




var actinStore = new Ext.data.Store({
proxy: new Ext.data.ScriptTagProxy({url:'typeCombo.action?method=getTypes&category=ACTION_STATUS'}),
reader: new Ext.data.JsonReader(
{root: 'result', id: 'ID'},
[
{name: 'ID', mapping: 'ID'},
{name: 'TITLE', mapping: 'TITLE'},
{name: 'VALUE', mapping: 'VALUE'}
]
)
}
);

var actionStatus_combo = new Ext.form.ComboBox({
store: actinStore,
displayField:'TITLE',
valueField:'VALUE',
typeAhead: true,
triggerAction: 'all',
selectOnFocus:true,
valueNotFoundText:'',
defaultValue:''
});

actionStatus_combo.applyTo('STATUS_SHOW');

<input type="text" id="STATUS_SHOW" size="10">



if i refresh the window,the iexplore.exe (ie) use memory is increase .

mystix
29 Jun 2007, 4:54 AM
I recommend downloading IESieve (http://home.wanadoo.nl/jsrosman/) and taking a look at your ComboBox sample to determine if it's really the ComboBox that's causing a leak.

simply monitoring the windows task manager for iexplore.exe memory usage will not enable you to accurately pinpoint the cause of the memory leak.