Re: [請益] JavaScript Memory Leak

看板Ajax作者 (骨頭)時間17年前 (2007/03/20 22:18), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 引述《TonyQ (骨頭)》之銘言: : 簡單來說就是JavaScript所造成的記憶體殘留。(沒被釋放) : 我怕我的敘述不夠清楚,所以找了一個說明頁。 : http://www.barelyfitz.com/screencast/javascript/memory-leak/ 裝了leak monitor (Fx plug-in)之後, 確認leak來源是在 urMap Api中(後附report), trace code看了一個小時,覺得要找出問題這點實在非我能力可及。orz 而且就算找出問題也要urMap才能解決。(煙) 只好先不理它了。 對於相對應的處理措施, IE 只要把視窗最小化,就會自動做GC動作。 Fx 則是需要做一點最佳化的工夫才會這樣作。 至於PCMan...還沒試過,先不理它。XD 雖然有點糟糕的解法,不過也只能將就。 誰叫urMap的中文路名,有它的不可取代性......>"< ──────────────────────────────── Leaks in window 0x1e0c568:[+] [leaked object] (2726950, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (1d344d0) = [Object][+] [leaked object] (2726958, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (1d344f0) = [Object][+] [leaked object] (2726970, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (1d34500) = [Object][+] [leaked object] (27269b8, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (1d34518) = [Object][+] [leaked object] (2726870, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (26ddd80) = [Object][+] [leaked object] (2726960, http://www.urmap.com/api/script/1.06/urmap1.06.js, 5-5) = [Function] [ ] prototype (1d34538) = [Object] -- I am a person, and I am always thinking . Thinking in love , Thinking in life , Thinking in why , Thinking in worth. I can't believe any of what , I am just thinking then thinking , but worst of all , most of mine is thinking not actioning... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.27.68
文章代碼(AID): #15_-qX1k (Ajax)
討論串 (同標題文章)
本文引述了以下文章的的內容:
以下文章回應了本文
完整討論串 (本文為第 2 之 3 篇):
文章代碼(AID): #15_-qX1k (Ajax)