Click here to Skip to main content
15,900,589 members
Home / Discussions / COM
   

COM

 
GeneralRe: how to install DCOM to other computers Pin
Yaki_1514-Sep-06 3:01
Yaki_1514-Sep-06 3:01 
AnswerRe: how to install DCOM to other computers Pin
Hamid_RT15-Sep-06 21:44
Hamid_RT15-Sep-06 21:44 
Questionproblem in retrieving "Time" from database using _RecordsetPtr Pin
PrafullaVedante9-Sep-06 3:07
PrafullaVedante9-Sep-06 3:07 
AnswerRe: problem in retrieving "Time" from database using _RecordsetPtr Pin
BadJerry11-Sep-06 5:25
BadJerry11-Sep-06 5:25 
GeneralRe: problem in retrieving "Time" from database using _RecordsetPtr Pin
PrafullaVedante14-Sep-06 2:42
PrafullaVedante14-Sep-06 2:42 
Questionhow to open page in parent target by using Response.Redirect Pin
Harshad Pednekar9-Sep-06 0:20
Harshad Pednekar9-Sep-06 0:20 
QuestionApartment model, COM and misery Pin
BadJerry8-Sep-06 5:17
BadJerry8-Sep-06 5:17 
AnswerRe: Apartment model, COM and misery Pin
Lim Bio Liong9-Sep-06 22:00
Lim Bio Liong9-Sep-06 22:00 
Hello BadJerry,

Although all threads in asp.net are MTA-based, your COM object remains an STA object. Hence at runtime, when your COM object is created, an STA apartment will be created (whose thread is the one for which you have tracked the ID) and the COM object will live there.

If your have the source codes for your COM object, you can change the apartment type to MTA but you must of course modify your code to make it suitable as an MTA object (using CRITICAL_SECTION objects, etc).

If you do not have the source codes to the COM object, I suggest creating an MTA object that exposes the same interface but internally aggregates all interface method calls to the original COM object. This should allow the asp.net client to make calls to other methods while the long time-consuming method is underway.

Hope the above helps,
Bio.



GeneralRe: Apartment model, COM and misery Pin
BadJerry11-Sep-06 5:09
BadJerry11-Sep-06 5:09 
GeneralRe: Apartment model, COM and misery Pin
Lim Bio Liong11-Sep-06 5:21
Lim Bio Liong11-Sep-06 5:21 
QuestionCOleDispatchException when creating comments for Excel Worksheets Pin
Crash27-Sep-06 10:00
Crash27-Sep-06 10:00 
AnswerRe: COleDispatchException when creating comments for Excel Worksheets Pin
Steve S7-Sep-06 21:51
Steve S7-Sep-06 21:51 
GeneralRe: COleDispatchException when creating comments for Excel Worksheets Pin
Crash28-Sep-06 1:34
Crash28-Sep-06 1:34 
GeneralRe: COleDispatchException when creating comments for Excel Worksheets Pin
Crash28-Sep-06 4:27
Crash28-Sep-06 4:27 
Questionthe problem of SafeArray Pin
XPointer7-Sep-06 7:16
XPointer7-Sep-06 7:16 
AnswerRe: the problem of SafeArray Pin
Hans Ruck8-Sep-06 2:46
Hans Ruck8-Sep-06 2:46 
AnswerRe: the problem of SafeArray Pin
Lim Bio Liong8-Sep-06 3:46
Lim Bio Liong8-Sep-06 3:46 
AnswerRe: the problem of SafeArray Pin
BadJerry8-Sep-06 5:23
BadJerry8-Sep-06 5:23 
GeneralRe: the problem of SafeArray Pin
XPointer10-Sep-06 2:24
XPointer10-Sep-06 2:24 
QuestionUsing COM with ASP.Net Pin
hsv0037-Sep-06 5:46
hsv0037-Sep-06 5:46 
QuestionDLL does not contain any types that can be registered for COM Interop Pin
Calgary Randy6-Sep-06 10:13
Calgary Randy6-Sep-06 10:13 
AnswerRe: DLL does not contain any types that can be registered for COM Interop Pin
Mike Dimmick7-Sep-06 3:59
Mike Dimmick7-Sep-06 3:59 
QuestionRe: DLL does not contain any types that can be registered for COM Interop Pin
Calgary Randy11-Sep-06 20:24
Calgary Randy11-Sep-06 20:24 
AnswerRe: DLL does not contain any types that can be registered for COM Interop Pin
Calgary Randy11-Sep-06 20:29
Calgary Randy11-Sep-06 20:29 
QuestionUsing C#/Office .NET Programmability Pin
Andrew Mercer5-Sep-06 22:44
Andrew Mercer5-Sep-06 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.