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

0x80040202 error when using Delphi built COM obje

尚未結案
xjwhf
一般會員


發表:3
回覆:2
積分:1
註冊:2005-06-14

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-08-06 14:13:11 IP:61.181.xxx.xxx 未訂閱
I'm getting an exception raise when I use a COM object built with Delphi within C#. The exception number is 0x80040202, which occurs when more than one event handler is assigned. There are three events, the first event handler assigned works fine however the afore mentioned exception occurs when the second event handler is assigned. I've read some stuff from the Microsoft knowledge base regarding a problem with sinker help classes that have the wrong protection type in the Interop type library that .Net generates, but this doesn't seem to be the problem in this case. Microsoft have taken a look at this problem on our behalf and have not been able to find a solution, they suggested it was a problem with the interface within Delphi and suggested we contacted Borland. My development teams next step is to be build a series of dummy COM objects under different languages that use the same interface to try and issolate where the problem is. If anybody out there can sched more light on this it would be greatly appreciated. We don't fancy having to recode all the Delphi stuff in C# just to get round this problem but that's our choice of last resort. Many thanks,
系統時間:2024-05-10 5:21:06
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!