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

COM

 
GeneralGetActiveObject() failing... Pin
17-Oct-02 11:12
suss17-Oct-02 11:12 
GeneralRe: GetActiveObject() failing... Pin
Jason Henderson18-Oct-02 3:14
Jason Henderson18-Oct-02 3:14 
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 
Hi, I am having some problems with a pair of COM controls i have written. Each control starts up threads to deal with a serial port and fires events back to the container app on certain data recieved.

I want to be able to deal with the situation where the container is shut down with out calling my clean up methods.

If I have only one control running every thing seems fine and the code cleans up

if i run both controls (seperate serial ports no common variables or code) then I can get in a situation where i signal my threads to stop and they never do. I call the "Emergency shut down" on a c++ deconstructor of the com control. The emergency shut down sets a flag that will cause the thread to abort and not fire the controls events but the thread gets NO runtime even with stupid sleeps() while i am waiting for it to return before destroying my com object (from a c++ sense).

I can only assume I have deadlocked the com control. If i let the deconstructor complete I either get a page fault due to my variables being now nonsense or I find I was in the middle of firing the com event and now the rest of that events code no longer exists either way page fault and the container goes down with any recorded data.

How can I

1) avoid this dead lock
2) detect the container/control is going down and have time to stop my threads close ports etc.

and why does having both controls running on a single container matter?Confused | :confused:

Thanks in advance

Robin,Confused | :confused:
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 
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 

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.