Click here to Skip to main content
16,010,470 members
Home / Discussions / COM
   

COM

 
GeneralRe: Using COM dll in C Pin
Jörgen Sigvardsson24-Mar-05 2:52
Jörgen Sigvardsson24-Mar-05 2:52 
GeneralRe: Using COM dll in C Pin
Monty224-Mar-05 5:20
Monty224-Mar-05 5:20 
GeneralRe: Using COM dll in C Pin
Jörgen Sigvardsson24-Mar-05 9:54
Jörgen Sigvardsson24-Mar-05 9:54 
GeneralRe: Using COM dll in C Pin
Mike Dimmick24-Mar-05 5:43
Mike Dimmick24-Mar-05 5:43 
GeneralRe: Using COM dll in C Pin
Monty224-Mar-05 7:22
Monty224-Mar-05 7:22 
GeneralQueryInterface calls Pin
GizzoF23-Mar-05 0:41
GizzoF23-Mar-05 0:41 
GeneralRe: QueryInterface calls Pin
ThatsAlok23-Mar-05 1:58
ThatsAlok23-Mar-05 1:58 
GeneralRe: QueryInterface calls Pin
GizzoF23-Mar-05 4:23
GizzoF23-Mar-05 4:23 
Hi again,

IFeed is my interface and it is derived from IDispatch. The class that implements IFeed is CFeedCOM... i think i'm going to post it...

class CFeedCOM : 	public CReferenceCountedObject, <br />
						public IFeed,<br />
						public ISupportErrorInfo,<br />
						public IConnectionPointContainerImpl<CFeedCOM>,<br />
						public CProxy_IFeedEvents<CFeedCOM>


CReferenceCountedObject is taken from Lim Bio Liong (this guy have saved my life with his articles).

The reason I wanted to know what happens under the hood of an object creation is:
When a client fails (sometimes, not always) the next client trying to connect to the server doesn't follow the same steps that the previous one. Instead of querying all the interfaces posted in my previous message, my object is asked for:

1. IUnknown
2. IMarshal x2
3. {0000001B-0000-0000-C000-000000000046}
4. IID_IUnknown

And now, something happens, and my object is released until m_cRef goes to zero. Then, QI is called for IManagedObject, m_cRef is incremented to 2, and again released until zero. This causes the destruction of my object of course what I'm trying to avoid.

I don't know if I explained the problem. I only want to know what is happening there.

Thanks for answering.

Best regards,
Gizzo.
GeneralDCOM Server using in service Pin
Member 28664122-Mar-05 17:39
Member 28664122-Mar-05 17:39 
QuestionHow to make an ActiveX control can be copied and pasted in a Richedit control Pin
gxulg22-Mar-05 17:30
gxulg22-Mar-05 17:30 
GeneralGet text on screen Pin
levgiang22-Mar-05 0:31
levgiang22-Mar-05 0:31 
QuestionHow to make ICopyHook work ? Pin
khan++21-Mar-05 0:43
khan++21-Mar-05 0:43 
AnswerRe: How to make ICopyHook work ? Pin
khan++21-Mar-05 23:01
khan++21-Mar-05 23:01 
GeneralRe: How to make ICopyHook work ? Pin
Jörgen Sigvardsson22-Mar-05 4:37
Jörgen Sigvardsson22-Mar-05 4:37 
GeneralActiveX and events Pin
DaSharmXXX120-Mar-05 20:59
sussDaSharmXXX120-Mar-05 20:59 
GeneralParse Remote SSL Certificate Pin
AZinNC18-Mar-05 9:10
AZinNC18-Mar-05 9:10 
GeneralProblem with Word 2003 COM Add-in. Pin
Johannes Ackermann17-Mar-05 23:29
Johannes Ackermann17-Mar-05 23:29 
GeneralRe: Problem with Word 2003 COM Add-in. Pin
Johannes Ackermann23-Mar-05 23:14
Johannes Ackermann23-Mar-05 23:14 
Generalsimulating new com server Pin
grinder17-Mar-05 20:53
grinder17-Mar-05 20:53 
GeneralCOM,OLE,AUTOMATION,ActiveX Pin
Muhammad Azam17-Mar-05 19:22
Muhammad Azam17-Mar-05 19:22 
QuestionHow to capture mouse events on MS Word Document? Pin
ajalilqarshi17-Mar-05 4:08
ajalilqarshi17-Mar-05 4:08 
AnswerRe: How to capture mouse events on MS Word Document? Pin
vishalmore21-Mar-05 23:56
vishalmore21-Mar-05 23:56 
QuestionHow to Handle Menu event? Pin
ajalilqarshi17-Mar-05 4:04
ajalilqarshi17-Mar-05 4:04 
GeneralDCOM vs .Net Remoting Pin
schilled16-Mar-05 22:24
schilled16-Mar-05 22:24 
QuestionWhy IPersistStreamInitImpl::Load Method is not called? Pin
ajalilqarshi16-Mar-05 21:23
ajalilqarshi16-Mar-05 21:23 

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.