Click here to Skip to main content
15,903,203 members
Home / Discussions / COM
   

COM

 
GeneralRe: Help Me! Thank you very much! Pin
Best Kiluyar9-Mar-06 22:18
Best Kiluyar9-Mar-06 22:18 
GeneralRe: Help Me! Thank you very much! Pin
Lim Bio Liong9-Mar-06 22:47
Lim Bio Liong9-Mar-06 22:47 
QuestionHow to Drawing in word Through C# Pin
sam_g18-Mar-06 0:36
sam_g18-Mar-06 0:36 
QuestionSystem.Runtime.InteropServices.COMException (0x800C0008): The download of the specified resource has failed. Pin
imunevar7-Mar-06 15:24
imunevar7-Mar-06 15:24 
QuestionAbout Remoting topic Pin
ashishnagar17-Mar-06 2:21
ashishnagar17-Mar-06 2:21 
Questionworking with VB .dll Pin
_kane_7-Mar-06 1:03
_kane_7-Mar-06 1:03 
QuestionHow to connect to the Automation server which is not registered in ROT. Pin
oleg636-Mar-06 5:37
professionaloleg636-Mar-06 5:37 
QuestionHow to trap IE refresh Pin
tenali_gowda5-Mar-06 20:41
tenali_gowda5-Mar-06 20:41 
There is a activex written using MFC and COM .
The main class inherits
CComObjectRootEx
IDispatchImpl
CComCoClass
IObjectSafetyImpl

Now 2threads are created inside this class in the constructor.
When IE is refreshed/reloaded, I loss the pointer of the process and
threads are not deallocated.


So what I did is, made thread ID's as static in the class and
deallocate them in the constructor before creating new threads.
When I WaitforSingleObject() I always get time out(258).
so I call TerminateThread().
I know this is wrong way.
Now this method is leaving lot of leaks.


Please suggest me a remedy so that I can trap the refresh ask my thread
to exit gracefully.


Thanks a lot in advance.






-Tenali-
QuestionPassing user defined object between COM component and client Pin
dario_alvarez5-Mar-06 12:37
dario_alvarez5-Mar-06 12:37 
QuestionBSTR problems in COM Service Pin
RobCraig3-Mar-06 9:12
RobCraig3-Mar-06 9:12 
AnswerRe: BSTR problems in COM Service Pin
Gerald Schwab3-Mar-06 10:02
Gerald Schwab3-Mar-06 10:02 
GeneralRe: BSTR problems in COM Service Pin
RobCraig3-Mar-06 11:58
RobCraig3-Mar-06 11:58 
QuestionHow to detect ActiveX on IE when it begins run using BHO? Pin
Blue-Bird1-Mar-06 21:09
Blue-Bird1-Mar-06 21:09 
QuestionUsing ActiveX in MFC Pin
lroels1-Mar-06 20:36
lroels1-Mar-06 20:36 
Questionout of process activex exe Pin
david_reynolds28-Feb-06 9:16
david_reynolds28-Feb-06 9:16 
AnswerRe: out of process activex exe Pin
Roger Stoltz28-Feb-06 21:23
Roger Stoltz28-Feb-06 21:23 
GeneralRe: out of process activex exe Pin
david_reynolds1-Mar-06 3:11
david_reynolds1-Mar-06 3:11 
QuestionHow to delete a COM object - My Other Code Pin
AmitGG27-Feb-06 22:45
AmitGG27-Feb-06 22:45 
AnswerRe: How to delete a COM object - My Other Code Pin
AmitGG28-Feb-06 22:14
AmitGG28-Feb-06 22:14 
QuestionHow to delete a COM object Pin
AmitGG27-Feb-06 20:30
AmitGG27-Feb-06 20:30 
AnswerRe: How to delete a COM object Pin
mbue27-Feb-06 22:07
mbue27-Feb-06 22:07 
GeneralRe: How to delete a COM object Pin
AmitGG27-Feb-06 22:21
AmitGG27-Feb-06 22:21 
GeneralRe: How to delete a COM object Pin
mbue27-Feb-06 23:29
mbue27-Feb-06 23:29 
GeneralRe: How to delete a COM object Pin
AmitGG28-Feb-06 0:05
AmitGG28-Feb-06 0:05 
GeneralRe: How to delete a COM object Pin
mbue28-Feb-06 3:51
mbue28-Feb-06 3:51 

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.