線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:6112
推到 Plurk!
推到 Facebook!

IdAntiFreeze元件應該如何使用?

答題得分者是:cmf
gut
一般會員


發表:8
回覆:17
積分:5
註冊:2003-01-10

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-01-23 11:39:54 IP:218.102.xxx.xxx 未訂閱
小弟怎麼設都沒有作用,是應該和特定的元件搭配嗎?
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-01-23 12:20:10 IP:202.39.xxx.xxx 未訂閱
這是 Help 內的一段: Indy works on the blocking model. That is when calls are made to Indy the do not return until they are complete. If calls are made in the main thread this will cause the Application User Interface to "freeze" during Indy calls. TIdAntiFreeze counter acts this effect. TIdAntiFreeze allows Indy subsystem to make process Application message calls so that Windows messages continue to be executed while Indy blocking socket calls are in effect. Only one TIdAntiFreeze can be active in an application. If another instance already exists, an exception is raised. TIdAntiFreezeBase uses the global variable GAntiFreeze, declared in the TIdAntiFreezeBase unit, to determine if another instance has already been created. 所以在用 Indy 元件時, 也拉一個 TIdAntiFreeze 元件即可。 -- 將進酒 杯莫停 與君歌一曲 請君為我傾耳聽
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-01-23 12:33:34 IP:61.218.xxx.xxx 未訂閱
引言: 小弟怎麼設都沒有作用,是應該和特定的元件搭配嗎?
舉例來說 當 使用 TidFTP 上傳 或 下載 未完成時 按任和鍵 都不會動作 就好像當機一樣 若加入 IdAntiFreeze元件 就不會了
------
︿︿
gut
一般會員


發表:8
回覆:17
積分:5
註冊:2003-01-10

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-01-23 13:18:26 IP:218.102.xxx.xxx 未訂閱
謝謝,再請教前輩一下,如果TAntiFreeze和NMHTTP合用的話是不是就會失去TAntiFreeze的效果了呢?
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-01-23 13:22:00 IP:61.218.xxx.xxx 未訂閱
引言: 謝謝,再請教前輩一下,如果TAntiFreeze和NMHTTP合用的話是不是就會失去TAntiFreeze的效果了呢?
TAntiFreeze 只適用於 INDY 元件
------
︿︿
gut
一般會員


發表:8
回覆:17
積分:5
註冊:2003-01-10

發送簡訊給我
#6 引用回覆 回覆 發表時間:2003-01-23 13:24:27 IP:218.102.xxx.xxx 未訂閱
貪心再多問一個,AntiFreeze中的IdleTimeOut是指idle多久後開始作用嗎?如果是,單位是秒嗎? 原諒小弟一次問那麼多問題…謝謝!^_^
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#7 引用回覆 回覆 發表時間:2003-01-23 13:37:50 IP:61.218.xxx.xxx 未訂閱
引言: 貪心再多問一個,AntiFreeze中的IdleTimeOut是指idle多久後開始作用嗎?如果是,單位是秒嗎? 原諒小弟一次問那麼多問題…謝謝!^_^
property IdleTimeOut: integer; 預設值=250 ms 單位=豪秒 , 1/1000 sec that can elapse in the Readable method of Indy components before the component is reactivated.
------
︿︿
gut
一般會員


發表:8
回覆:17
積分:5
註冊:2003-01-10

發送簡訊給我
#8 引用回覆 回覆 發表時間:2003-01-23 13:43:42 IP:218.102.xxx.xxx 未訂閱
謝謝,不勝感激!!^_^
killghost
一般會員


發表:14
回覆:21
積分:7
註冊:2004-04-21

發送簡訊給我
#9 引用回覆 回覆 發表時間:2004-11-04 11:04:59 IP:218.88.xxx.xxx 未訂閱
引言: 這是 Help 內的一段: Indy works on the blocking model. That is when calls are made to Indy the do not return until they are complete. If calls are made in the main thread this will cause the Application User Interface to "freeze" during Indy calls. TIdAntiFreeze counter acts this effect. TIdAntiFreeze allows Indy subsystem to make process Application message calls so that Windows messages continue to be executed while Indy blocking socket calls are in effect. Only one TIdAntiFreeze can be active in an application. If another instance already exists, an exception is raised. TIdAntiFreezeBase uses the global variable GAntiFreeze, declared in the TIdAntiFreezeBase unit, to determine if another instance has already been created. 所以在用 Indy 元件時, 也拉一個 TIdAntiFreeze 元件即可。 -- 將進酒 杯莫停 與君歌一曲 請君為我傾耳聽
为什么我放了一个AntiFreene在主窗体上面,使用后效果怎么不明显?在我是用IdTCPClient发送数据的时候,主窗体仍然不能任意拖动,请大家帮忙解释一下。谢谢了
系統時間:2024-05-17 14:37:30
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!