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

COM

 
QuestionDifference between Dlls Pin
HakunaMatada29-Sep-06 2:22
HakunaMatada29-Sep-06 2:22 
AnswerRe: Difference between Dlls Pin
Mr.Brainley29-Sep-06 3:39
Mr.Brainley29-Sep-06 3:39 
AnswerRe: Difference between Dlls Pin
Mike Dimmick1-Oct-06 6:05
Mike Dimmick1-Oct-06 6:05 
QuestionCommand Line Arguments Pin
mpk197929-Sep-06 1:47
mpk197929-Sep-06 1:47 
AnswerRe: Command Line Arguments Pin
Mr.Brainley29-Sep-06 3:42
Mr.Brainley29-Sep-06 3:42 
Questionuse shell extension .dll out of an .exe (wrapper) Pin
drax_081528-Sep-06 3:08
drax_081528-Sep-06 3:08 
QuestionHow can i Force com object to be release ? Pin
Yanshof28-Sep-06 2:14
Yanshof28-Sep-06 2:14 
AnswerRe: How can i Force com object to be release ? Pin
Lim Bio Liong28-Sep-06 4:35
Lim Bio Liong28-Sep-06 4:35 
Hello Yanshof,

>> how can i force the com object to set the counter of the object that point to current object to be 0 ?
Doing so violates the basic principles of COM - that is, to ensure objects remain alive as long as a client holds a reference to it.

The only concept that is vaguely similar to what you want to do is when a COM EXE server, running as a visible application, is terminated by the user. In such a situation, prior to shutting down, the EXE server calls the CoDisconnectObject() API to release external connections to all its running objects. Each object will then take steps to notify its proxy that it is about to shut down.

The outcome of such an arrangement is to enable a proxy to respond to all subsequent calls from its client by returning RPC_E_DISCONNECTED or CO_E_OBJECTNOTCONNECTED rather than attempting to forward the calls on to the original object. When the client receives such a return value, it must destroy the proxy.

My suggestion to you is that : if you need to close (I guess you mean destroy) the COM object at some point in its usage, you should arrange for an event to be fired to your client so that it can be made ready for such a situation.

Best Regards,
Bio.





QuestionStartServiceCtrlDispatcher fails Pin
mpk197927-Sep-06 21:30
mpk197927-Sep-06 21:30 
AnswerRe: StartServiceCtrlDispatcher fails Pin
User 21559727-Sep-06 22:34
User 21559727-Sep-06 22:34 
GeneralRe: StartServiceCtrlDispatcher fails Pin
mpk197929-Sep-06 1:44
mpk197929-Sep-06 1:44 
GeneralRe: StartServiceCtrlDispatcher fails Pin
User 2155973-Oct-06 1:45
User 2155973-Oct-06 1:45 
QuestionHow to create a custom Calendar control in asp.net web application?? Pin
choorakkuttyil27-Sep-06 20:55
choorakkuttyil27-Sep-06 20:55 
Questionoutlook CRM integration Pin
drequinox27-Sep-06 11:31
drequinox27-Sep-06 11:31 
QuestionIWebBrowser2::Navigate2 problems Pin
Shutaro27-Sep-06 8:02
Shutaro27-Sep-06 8:02 
QuestionMap Event queue not cleared after FireEvent call Pin
Shutaro27-Sep-06 7:45
Shutaro27-Sep-06 7:45 
QuestionReturning an array of a userdefined struct via RPC Pin
Mr.Brainley27-Sep-06 3:59
Mr.Brainley27-Sep-06 3:59 
QuestionStarting COM Pin
Suresh H26-Sep-06 19:25
Suresh H26-Sep-06 19:25 
AnswerRe: Starting COM Pin
User 21559726-Sep-06 20:21
User 21559726-Sep-06 20:21 
GeneralRe: Starting COM Pin
Suresh H26-Sep-06 20:39
Suresh H26-Sep-06 20:39 
AnswerRe: Starting COM Pin
ShilpiP27-Sep-06 23:54
ShilpiP27-Sep-06 23:54 
AnswerRe: Starting COM Pin
Hamid_RT4-Oct-06 19:38
Hamid_RT4-Oct-06 19:38 
AnswerRe: Starting COM Pin
Nisamudheen4-Oct-06 23:11
Nisamudheen4-Oct-06 23:11 
QuestionProblem with Interface creation Pin
Sakthiu25-Sep-06 0:57
Sakthiu25-Sep-06 0:57 
QuestionRe: Problem with Interface creation Pin
prasad_som25-Sep-06 1:07
prasad_som25-Sep-06 1:07 

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.