Click here to Skip to main content
15,911,360 members
Home / Discussions / COM
   

COM

 
GeneralRe: Write a IE toolbar by VS 2005 Pin
saminjesus30-Jan-07 14:46
saminjesus30-Jan-07 14:46 
AnswerRe: Write a IE toolbar by VS 2005 Pin
prasad_som30-Jan-07 17:06
prasad_som30-Jan-07 17:06 
GeneralRe: Write a IE toolbar by VS 2005 Pin
saminjesus31-Jan-07 16:01
saminjesus31-Jan-07 16:01 
AnswerRe: Write a IE toolbar by VS 2005 Pin
host287-Feb-07 15:04
host287-Feb-07 15:04 
QuestionUnknown fault trying connect to an OPC-Server Pin
Biasto29-Jan-07 20:05
Biasto29-Jan-07 20:05 
AnswerRe: Unknown fault trying connect to an OPC-Server Pin
User 21559730-Jan-07 1:12
User 21559730-Jan-07 1:12 
GeneralRe: Unknown fault trying connect to an OPC-Server Pin
Biasto30-Jan-07 3:19
Biasto30-Jan-07 3:19 
QuestionWhen Servers Crash! Pin
Michael Bergman29-Jan-07 8:50
Michael Bergman29-Jan-07 8:50 
I have a COM/ATL out-of-proc server whose main object is a singleton. I will call this Object A. Object A is called by other out-of-proc servers, but they are on the same machine so I am not worried about DCOM, etc. Object A uses a third party library (another set of COM objects) which generally works well but has a couple of known problems which can crash the Object A server (the problem can be reproduced). I have isolated this library into its own out-of-proc server to protect the Object A server. The library of the new server contains an object (I will call it Object B) which gets a reference to Object A. Object A releases its reference to Object B, but Object B maintains its own reference until its work is done. When the work by Object B is done, it notifies Object A, releases Object A and then releases itself. When all other servers are done and release Object A, then Object A is released and goes away normally.

If in the middle of its work, Object B crashes, it takes down its own server but the server which owns Object A is unharmed... except, that it still thinks there is another server out there which has a reference to it, so it won't shut down when all other out-of-proc servers have released their references.

Object A also maintains a watch on the Object B process so it knows if the Object B process has crashed.

Efforts to decrement the interface count on Object A when Object B crashes were not helpful and could have caused other problems (the reference count in Object A does not appear to be affected by Object B... I am assuming an internal reference count and an external referece count... but if so, where is the external reference count stored and can it be decremented???).

Ultimately, I need to get Object A back to the state it had before it created Object B.

I am also posting this in the ATL forum.
Thanks.


m.bergman
-- For Bruce Schneier, quanta only have one state : afraid.



QuestionFocus-Problem with IWebBrowser2 Pin
steven1129-Jan-07 4:31
steven1129-Jan-07 4:31 
QuestionWindows Media Server 9 and IWMSBufferAllocator Pin
Tili29-Jan-07 0:08
Tili29-Jan-07 0:08 
QuestionHow do i do a dialog from vbscript Pin
markpetryk29-Jan-07 0:05
markpetryk29-Jan-07 0:05 
QuestionList all network interfaces (offline and online) Pin
Fabricio Godoy26-Jan-07 7:38
Fabricio Godoy26-Jan-07 7:38 
Questionhow to use tlbinf32.dll Pin
huangdingjun25-Jan-07 14:12
huangdingjun25-Jan-07 14:12 
AnswerRe: how to use tlbinf32.dll Pin
User 21559726-Jan-07 6:12
User 21559726-Jan-07 6:12 
GeneralRe: how to use tlbinf32.dll Pin
huangdingjun30-Jan-07 16:17
huangdingjun30-Jan-07 16:17 
QuestionCOM objects all unregistered Pin
Marcus J. Smith24-Jan-07 0:29
professionalMarcus J. Smith24-Jan-07 0:29 
AnswerRe: COM objects all unregistered Pin
Roger Stoltz24-Jan-07 1:14
Roger Stoltz24-Jan-07 1:14 
JokeRe: COM objects all unregistered Pin
User 21559724-Jan-07 5:37
User 21559724-Jan-07 5:37 
GeneralRe: COM objects all unregistered Pin
Marcus J. Smith27-Jan-07 2:54
professionalMarcus J. Smith27-Jan-07 2:54 
GeneralRe: COM objects all unregistered Pin
prasad_som25-Jan-07 17:05
prasad_som25-Jan-07 17:05 
QuestionSending command through serial port - error Overlapped I/O operation in process Pin
Matt_deveau23-Jan-07 11:30
Matt_deveau23-Jan-07 11:30 
AnswerRe: Sending command through serial port - error Overlapped I/O operation in process Pin
Tim Paaschen23-Jan-07 19:21
Tim Paaschen23-Jan-07 19:21 
QuestionRetrieve Com-Object which implements interface Pin
rncwnd22-Jan-07 5:57
rncwnd22-Jan-07 5:57 
Question.Net Com Pin
Ron.S22-Jan-07 0:20
Ron.S22-Jan-07 0:20 
Questionhow to add mat files from matlab to the com builder of matlab Pin
ranjeet_randy19-Jan-07 22:23
ranjeet_randy19-Jan-07 22: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.