[請益] Detected memory leaks!的解決之道??

看板Programming作者 (我 有我的倔強...)時間18年前 (2006/08/23 10:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/5 (看更多)
※ [本文轉錄自 C_and_CPP 看板] 作者: Uihc (我 有我的倔強...) 看板: C_and_CPP 標題: Detected memory leaks! 時間: Tue Aug 22 18:03:45 2006 這個問題已經困擾很久了~~ 我寫了一個視窗程式(MFC) 在debug狀態下執行程式時,其中有些功能(都是對話方塊)如果不執行完畢, 按取消使其中斷功能,並沒有什麼異狀 但如果接著按"x"(關閉) 將整個程式關閉 就會出現以下的記憶體洩漏訊息 我每一個new出來的動態陣列都有乖乖的delete 但是也許是程式碼太多我看漏了... 想知道是什麼原因會造成這種錯誤訊息呢?? 還有就是有什麼方法可以去偵測我是什麼地方記憶沒有釋放它而引起錯誤訊息... 謝謝!! Detected memory leaks! Dumping objects -> {2300} normal block at 0x03C1C098, 19098 bytes long. Data: < > 00 CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD {2299} normal block at 0x03C175C0, 19098 bytes long. Data: < ( ((( > 00 00 1E 1A 28 19 1E 1E 1E 1A 19 28 28 28 19 19 {2298} normal block at 0x03C12AE8, 19098 bytes long. Data: < (( (( > 00 00 1A 0D 28 28 1A 1A 1A 1A 19 28 28 19 19 1A {2297} normal block at 0x03C0E010, 19098 bytes long. Data: < ((( > 00 00 1A 19 28 28 28 1A 1A 1A 1A 19 19 19 19 1A {2296} normal block at 0x03C09538, 19098 bytes long. Data: < > 00 00 1A 1A 19 19 1A 1A 1A 19 1A 1A 1A 1A 0D 1A {2295} normal block at 0x03C04A60, 19098 bytes long. Data: < ( > 00 00 18 18 18 18 18 18 19 19 19 28 1A 19 1A 18 {2294} normal block at 0x03BFFF88, 19098 bytes long. Data: < > 00 00 18 18 18 18 18 18 18 1A 1A 18 18 18 1A 0D {2293} normal block at 0x03BFB4B0, 19098 bytes long. Data: < > 00 00 18 18 18 18 18 18 16 16 18 18 18 19 1A 18 {2300} normal block at 0x03C1C098, 19098 bytes long. Data: < > 00 CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD {2299} normal block at 0x03C175C0, 19098 bytes long. Data: < ( ((( > 00 00 1E 1A 28 19 1E 1E 1E 1A 19 28 28 28 19 19 {2298} normal block at 0x03C12AE8, 19098 bytes long. Data: < (( (( > 00 00 1A 0D 28 28 1A 1A 1A 1A 19 28 28 19 19 1A {2297} normal block at 0x03C0E010, 19098 bytes long. Data: < ((( > 00 00 1A 19 28 28 28 1A 1A 1A 1A 19 19 19 19 1A {2296} normal block at 0x03C09538, 19098 bytes long. Data: < > 00 00 1A 1A 19 19 1A 1A 1A 19 1A 1A 1A 1A 0D 1A {2295} normal block at 0x03C04A60, 19098 bytes long. Data: < ( > 00 00 18 18 18 18 18 18 19 19 19 28 1A 19 1A 18 {2294} normal block at 0x03BFFF88, 19098 bytes long. Data: < > 00 00 18 18 18 18 18 18 18 1A 1A 18 18 18 1A 0D {2293} normal block at 0x03BFB4B0, 19098 bytes long. Data: < > 00 00 18 18 18 18 18 18 16 16 18 18 18 19 1A 18 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.64.235 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.64.235
文章代碼(AID): #14wxdPx9 (Programming)
文章代碼(AID): #14wxdPx9 (Programming)