whbcn
asked on
Memory leaks with IE6 + Jquery 1.4.2 + JqueryUI 1.8.1
ASKER
I update the JqueryUI with the latest version(1.5.1 + 1.8.11), and use IEJSLeaksDetetor to analysis again, it seems every Dom with event caused memory leaks.
The IEJSLeaksDetetor show most memory leaks caused by below code:
elem.attachEvent( "on" + type, eventHandle )
Jquery.js
if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
// Bind the global event handler to the element
if ( elem.addEventListener ) {
elem.addEventListener( type, eventHandle, false );
} else if ( elem.attachEvent ) {
elem.attachEvent( "on" + type, eventHandle );
}
}
The IEJSLeaksDetetor show most memory leaks caused by below code:
elem.attachEvent( "on" + type, eventHandle )
Jquery.js
if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
// Bind the global event handler to the element
if ( elem.addEventListener ) {
elem.addEventListener( type, eventHandle, false );
} else if ( elem.attachEvent ) {
elem.attachEvent( "on" + type, eventHandle );
}
}
ASKER
We just using Jquery in the very simple way. Mostly like :
$("#DB_editCollInfoBtn").c lick(funct ion(){
......
}
We have not found a infinite loop yet.
Any other idea? It seems that the events have not been unbind or removed.
$("#DB_editCollInfoBtn").c
......
}
We have not found a infinite loop yet.
Any other idea? It seems that the events have not been unbind or removed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
In Chrome, it shows as below:
-------------------------- ---------- ---------- ---------- -
top.right.document.getElem entById("b ack")
HTMLButtonElement
-------------------------- ---------- ---------- ---------- --
The application uses frame tag for a layout. the frame parts in "menu domain" and "the contents domain". even I just click the menu n "menu domain"(Response to "the contents domain"), the sIEve show leaks.
So is it some issue about the frame?
--------------------------
top.right.document.getElem
HTMLButtonElement
--------------------------
The application uses frame tag for a layout. the frame parts in "menu domain" and "the contents domain". even I just click the menu n "menu domain"(Response to "the contents domain"), the sIEve show leaks.
So is it some issue about the frame?
You may have a infinite loop, need to analyse the source and isolate sections of it to identify what is causing the problem?
Darren