IEのメモリリーク問題

category-icon


IEIE(Sleipnir)使 JavaScriptIE(IE memory leaks problemG)

 moblog

 IE使ppBlogJavaScriptIE4-6

 IE6()Link 216Link 

 2Control  Alt + Del IEXPLOERE.EXE2Scott AndrewLink ()W3CIEaddEvent/removeEventIEthisppBlog1.5β
function addEvent(obj, evType, fn){
 if(!obj["_"+evType]){
  obj["_"+evType] = [];
  if(obj["on" + evType] != null) obj["_"+evType].push(obj["on" + evType]);
  obj["on" + evType] = function(e){
   var e = e || window.event;
   for(var i in this["_"+e.type]) this["_"+e.type][i].apply(this,[e]);
  }
 } else {
  for(var i in obj["_"+evType]) if(obj["_"+evType][i]===fn) return;
 }
 obj["_"+evType].push(fn);
};

function removeEvent(obj, evType, fn){
 if(obj["_"+evType]){
  for(var i in obj["_"+evType]){
   if(obj["_"+evType][i]===fn) delete obj["_"+evType][i];
  }
 }
};

 addEvent使( )
function addEvent(obj, evType, fn){
 if(!obj["_"+evType]){
  obj["_"+evType] = [];
  if(obj["on" + evType] != null) obj["_"+evType].push(obj["on" + evType]);
  obj["on" + evType] = evokeEvent;
 } else {
  for(var i in obj["_"+evType]) if(obj["_"+evType][i]===fn) return;
 }
 obj["_"+evType].push(fn);
};

function removeEvent(obj, evType, fn){
 if(obj["_"+evType]){
  for(var i in obj["_"+evType]){
   if(obj["_"+evType][i]===fn) delete obj["_"+evType][i];
  }
 }
};

function evokeEvent(e) {
 var e = e || window.event;
 for(var i in this["_"+e.type]) this["_"+e.type][i].apply(this,[e]);
};

 addEvent3JavaScriptIEclosure circular referenceRichard CornfordLink 


The Internet Explorer web browser (verified on versions 4 to 6 (6 is current at the time of writing)) has a fault in its garbage collection system that prevents it from garbage collecting ECMAScript and some host objects if those host objects form part of a "circular" reference. The host objects in question are any DOM Nodes (including the document object and its descendants) and ActiveX objects. If a circular reference is formed including one or more of them, then none of the objects involved will be freed until the browser is closed down, and the memory that they consume will be unavailable to the system until that happens. 



Javascript ClosuresLink by Richard Cornford

James Mc Parlane's Blog - IE, Closures, LeaksLink 

Understanding and Solving Internet Explorer Leak Patterns (Windows IETechCol)Link 

[Mishoo] IE: where's my memory?Link 


 MicrosoftIE7MihaiMihai退

 Blow memory()

Out of HanwellIELink 

AJAXJavaScriptweb

 addEvent/removeEvent http://www.scottandrew.com/weblog/articles/cbs-eventsLink 

— posted by martin at 01:09 pm   commentComment [7]  pingTrackBack [2]

この記事に対するコメント・トラックバック [9件]

scrollUpOwner Comment martin Website  2005/12/02@18:39:22

こんばんは。削除しておきました(言及していただいてありがとうございました)。

2. HIYOKO — 2005/12/05@14:10:40

martin

 

Owner Comment martin Website  2005/12/07@12:45:15

extrainfo@p2b.jp 
 (drawing API)SWF

4. りえっぺ Website — 2005/12/21@21:17:45

ppBlogとは直接関係ないのですぐぁ
http://skyline.cc/index.php?UID=1135166367Link
よかったらよろしくお願いします。

5. ぷらむ — 2005/12/30@22:20:25

2pane view3nane view

martin1 

scrollUp6. Studio H.F.F. Website — 2006/03/01@19:03:40

Sleipnir使使使60MB(20MB)CPU使100%調  ppBlogIE IE46JavaScript使GoogleMailAJAX...
 » 

7. ユウナ — 2007/01/27@23:50:14

memory leak 

 

  

8. Publickey Website — 2009/03/26@11:15:17

Webブラウザはアプリケーションプラットフォームに向かって進化しているというお話...
続き »

9. GenericMedLife Website — 2022/11/10@14:28:59

こんばんは。サポートが追いつかなくて、リンクを切っていたのですが、デモサイトを復活させました。ソースを見れば分かりますが、http://www.genericmedlife.com/mens-health-price/cenforce-150mg/Link
がそのファイルとなります。

この記事に対する TrackBack URL:

設定によりTB元のページに、こちらの記事への言及(この記事へのリンク)がなければ、TB受付不可となりますのであらかじめご了承下さい。

コメントをどうぞ。 名前(ペンネーム)と画像認証のひらがな4文字は必須で、ウェブサイトURLはオプションです。

ウェブサイト (U):

タグは使えません。http://・・・ は自動的にリンク表示となります


:) :D 8-) ;-) :P :E :o :( (TT) ):T (--) (++!) ?;w) (-o-) (**!) ;v):B l_P~


 

 
     
T: Y: ALL: Online:
Created in 0.0114 sec.
prev
2005.11
next
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30