IdAntiFreeze元件應該如何使用? |
答題得分者是:cmf
|
gut
一般會員 發表:8 回覆:17 積分:5 註冊:2003-01-10 發送簡訊給我 |
|
hagar
版主 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
這是 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 發送簡訊給我 |
|
gut
一般會員 發表:8 回覆:17 積分:5 註冊:2003-01-10 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
|
gut
一般會員 發表:8 回覆:17 積分:5 註冊:2003-01-10 發送簡訊給我 |
|
cmf
尊榮會員 發表:84 回覆:918 積分:1032 註冊:2002-06-26 發送簡訊給我 |
引言: 貪心再多問一個,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 發送簡訊給我 |
|
killghost
一般會員 發表:14 回覆:21 積分:7 註冊:2004-04-21 發送簡訊給我 |
引言: 這是 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发送数据的时候,主窗体仍然不能任意拖动,请大家帮忙解释一下。谢谢了 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |