全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1169
推到 Plurk!
推到 Facebook!

關於Thread與COM的使用疑問?!

尚未結案
amide
一般會員


發表:4
回覆:13
積分:13
註冊:2002-07-11

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-03-31 16:12:40 IP:211.22.xxx.xxx 未訂閱
各位先進: 同一個COM 物件是否可以讓多個執行緒同時使用呢?! 我寫了一個TCP/IP的SERVER,它會接收來自很多Client所傳回來的資料,我會依這些資料去使用COM 來處理Data,但是會有同時多個Client都用同一個COM 的情況,不知道會不會發生錯誤或是發生資料遺失的情況. 迷惑的人~~~~
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-03-31 17:49:40 IP:147.8.xxx.xxx 未訂閱
COM ? I think the threading model of the objects will determine whether the objects will be shared or every thread will get its own instance. Please make sure your COM settings has a large enough pool if you turn on object pooling.
amide
一般會員


發表:4
回覆:13
積分:13
註冊:2002-07-11

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-04-01 09:16:12 IP:211.22.xxx.xxx 未訂閱
william兄: 不是很了解你的意思,我應該怎麼設定Pool呢?! 可否請你敘述清楚一點呢?! 感謝~~
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-04-01 09:25:28 IP:147.8.xxx.xxx 未訂閱
引言:william兄: 不是很了解你的意思,我應該怎麼設定Pool呢?! 可否請你敘述清楚一點呢?! 感謝~~
I think one of the COM (COM plus, I cannot see the plus sign in previewing this message) enhancement over COM/DCOM is the support of object pooling (i.e. object reuse)... Open Component Services under Administrative Tools, select Component Services and then your computer. Find the COM application and its Components, in the Activation tab page of its properties you should find the support of object pooling (ungrayed only when you object supports object pooling). Refer to your original question, COM supports queuing (I have little experience on it) which requires installation of MSMQ serivces.
Ktop_Robot
站務副站長


發表:0
回覆:3511
積分:0
註冊:2007-04-17

發送簡訊給我
#5 引用回覆 回覆 發表時間:2007-04-26 13:52:48 IP:000.000.xxx.xxx 未訂閱
提問者您好:


以上回應是否已得到滿意的答覆?


若已得到滿意的答覆,請在一週內結案,否則請在一週內回覆還有什麼未盡事宜,不然,
將由版主(尚無版主之區域將由副站長或站長)自由心證,選擇較合適之解答予以結案處理,
被選上之答題者同樣會有加分獎勵同時發問者將受到扣 1 分的處分。不便之處,請見諒。


有問有答有結案,才能有良性的互動,良好的討論環境需要大家共同維護,感謝您的配合。

------
我是機器人,我不接受簡訊.
系統時間:2024-05-05 2:28:36
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!