Click here to Skip to main content
15,898,374 members
Home / Discussions / COM
   

COM

 
GeneralRe: GetActiveObject() failing... Pin
Member 1035854718-Oct-02 3:18
Member 1035854718-Oct-02 3:18 
GeneralNeed help for IDispatch. Pin
sonshiro17-Oct-02 0:43
sonshiro17-Oct-02 0:43 
GeneralRe: Need help for IDispatch. Pin
Stephane Rodriguez.17-Oct-02 1:27
Stephane Rodriguez.17-Oct-02 1:27 
QuestionDCOM server enum clients? Pin
Jason Henderson16-Oct-02 11:17
Jason Henderson16-Oct-02 11:17 
AnswerRe: DCOM server enum clients? Pin
Brian van der Beek21-Oct-02 1:33
Brian van der Beek21-Oct-02 1:33 
GeneralThreading lockup Pin
Robin Cornelius16-Oct-02 9:25
Robin Cornelius16-Oct-02 9:25 
GeneralRe: Threading lockup Pin
Daniel Turini16-Oct-02 9:36
Daniel Turini16-Oct-02 9:36 
GeneralRe: Threading lockup Pin
Robin Cornelius16-Oct-02 11:21
Robin Cornelius16-Oct-02 11:21 
Thanks for the reply,

My main thread in each control is based on an ATL wizard anyway so that should be sound and have a message loop etc. Its a worker thread that is locking up. The worker thread can send events (via a global interface table) it does no other COM and it just watches for a c++ flag to drop to quit. The kill method is in the main ATL bit so/and the flag is getting set but then while I sleep waiting for clean up the worker thread seems to stall.

But and this is where it is werid. If i run one control it cleans up, if i use two controls it locks up!. The two controls are very similar. a main ATL wizard body and a worker thread that can dispatch events with a GIT. but apart from a common container (VB6 form) they are independent!

My assumption is that if the event gets fired in the worker thread and a method is invoked in the "main" thread the event is locked until the method returns meaning i can never clean up.

Based on your reply will a message loop in the worker thread help? I'm confused!

GeneralCOM Licensing Pin
Heath Stewart16-Oct-02 7:44
protectorHeath Stewart16-Oct-02 7:44 
Generaldo i need a buffered mouse for this.. Pin
lupus15-Oct-02 14:59
lupus15-Oct-02 14:59 
GeneralCComPtr.CoCreateInstance hangs Pin
tomc15-Oct-02 3:48
tomc15-Oct-02 3:48 
GeneralRe: CComPtr.CoCreateInstance hangs Pin
Stephane Rodriguez.15-Oct-02 4:34
Stephane Rodriguez.15-Oct-02 4:34 
QuestionWhere can I find the OLE for Retail POS(OPOS) sample codes? Pin
julio huang15-Oct-02 1:46
julio huang15-Oct-02 1:46 
GeneralNavigating the namespace Pin
Matt Eckerson14-Oct-02 11:49
Matt Eckerson14-Oct-02 11:49 
QuestionHow can I create a .tlb file for a MFC-base component? Pin
billdavid13-Oct-02 16:25
billdavid13-Oct-02 16:25 
AnswerRe: How can I create a .tlb file for a MFC-base component? Pin
Michael P Butler14-Oct-02 6:12
Michael P Butler14-Oct-02 6:12 
GeneralAbout Multi-IDispatch in MFC Pin
billdavid13-Oct-02 16:21
billdavid13-Oct-02 16:21 
GeneralStoring additional data in MsWord 2000/XP file Pin
mariuszpopiolek11-Oct-02 4:07
mariuszpopiolek11-Oct-02 4:07 
GeneralHelp with ADOCommand->Execute with Parameters Pin
ssirisha10-Oct-02 2:39
ssirisha10-Oct-02 2:39 
GeneralPass SafeArray to ACCESS using ADO Pin
ssirisha9-Oct-02 9:40
ssirisha9-Oct-02 9:40 
QuestionHow to retrieve information from MSWord Pin
Anonymous9-Oct-02 7:39
Anonymous9-Oct-02 7:39 
GeneralPassing CHUNKS of data. Pin
Bertrand Boichon7-Oct-02 11:47
Bertrand Boichon7-Oct-02 11:47 
GeneralRe: Passing CHUNKS of data. Pin
Chris Losinger7-Oct-02 12:06
professionalChris Losinger7-Oct-02 12:06 
GeneralAdding streams and storages into MSWord compound file Pin
Mariusz Popiolek7-Oct-02 5:36
sussMariusz Popiolek7-Oct-02 5:36 
QuestionWhy AddRef returns a long integer? Pin
Naresh25_cool7-Oct-02 1:39
Naresh25_cool7-Oct-02 1:39 

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.