請問Delphi的記憶體管理 |
缺席
|
Julien
一般會員 發表:36 回覆:28 積分:12 註冊:2002-11-28 發送簡訊給我 |
目前我們的專案,在formclose有寫Ttable.close與Tquery.close,在離開或取消的按鈕寫了"close;"再寫"release;"兩行程式碼.
然而,還是無法在關掉畫面後把記憶體全部釋放.
我有開"檔案管理員",開關幾次後,雖記憶體佔用會越來越大,然而,在到了12MB左右,關掉"檔案管理員"再將其重開,會發現所佔記憶體變成4MB.
不知為甚麼我們這樣寫法,無法於畫面關掉後將記憶體釋放??還有,該如何達到"檔案管理員"的記憶體管理機制?? 發表人 - julien 於 2002/12/17 11:07:27
|
小野豬
一般會員 發表:2 回覆:5 積分:1 註冊:2003-05-04 發送簡訊給我 |
|
ralph
初階會員 發表:41 回覆:82 積分:29 註冊:2003-02-04 發送簡訊給我 |
Can you explain detail? I have written a porgram for loading some images from the disk.
Every time, it loads a image from the disk and should release the memory of last image. I found it relase slowly. Sometime the program loads 3rd image and just release the memory of 1st image if let windows do memory management. Maybe you release a lot of memory at once. Do you write a own memory management.
Every copy function, My suggestion is that do it on memory (not like stcopy ...) This is my option.
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |