Click here to Skip to main content
15,909,953 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Template and operator << Pin
manustone31-Jan-07 1:55
manustone31-Jan-07 1:55 
AnswerRe: Template and operator << Pin
Michael Dunn31-Jan-07 3:12
sitebuilderMichael Dunn31-Jan-07 3:12 
QuestionProblem with a Function Template Pin
manustone30-Jan-07 9:22
manustone30-Jan-07 9:22 
AnswerRe: Problem with a Function Template Pin
Michael Dunn30-Jan-07 10:15
sitebuilderMichael Dunn30-Jan-07 10:15 
AnswerRe: Problem with a Function Template Pin
Michael Bergman30-Jan-07 11:31
Michael Bergman30-Jan-07 11:31 
GeneralRe: Problem with a Function Template Pin
manustone30-Jan-07 23:01
manustone30-Jan-07 23:01 
QuestionDisappearing slider Pin
AghaKhan29-Jan-07 12:27
AghaKhan29-Jan-07 12:27 
QuestionWhen Servers Crash! Pin
Michael Bergman29-Jan-07 8:51
Michael Bergman29-Jan-07 8:51 
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 COM forum.
Thanks.


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



QuestionIWMSBufferAllocator Windows Media Server 9 Pin
Tili29-Jan-07 0:11
Tili29-Jan-07 0:11 
QuestionSTL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton25-Jan-07 12:24
Jeffrey Walton25-Jan-07 12:24 
AnswerRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
prasad_som25-Jan-07 17:14
prasad_som25-Jan-07 17:14 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 3:29
Jeffrey Walton26-Jan-07 3:29 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
prasad_som26-Jan-07 5:42
prasad_som26-Jan-07 5:42 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 7:18
Jeffrey Walton26-Jan-07 7:18 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 4:14
Jeffrey Walton26-Jan-07 4:14 
AnswerRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Michael Dunn25-Jan-07 17:40
sitebuilderMichael Dunn25-Jan-07 17:40 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 3:26
Jeffrey Walton26-Jan-07 3:26 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 4:17
Jeffrey Walton26-Jan-07 4:17 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Joaquín M López Muñoz26-Jan-07 10:29
Joaquín M López Muñoz26-Jan-07 10:29 
QuestionProblem in Creating Activex in AtlComponent Pin
narayanagvs24-Jan-07 17:25
narayanagvs24-Jan-07 17:25 
QuestionATL Object having event Pin
godspeed12324-Jan-07 12:35
godspeed12324-Jan-07 12:35 
AnswerRe: ATL Object having event Pin
Roger Stoltz24-Jan-07 21:07
Roger Stoltz24-Jan-07 21:07 
QuestionI can't see ListView Control.what's the problem ? Pin
shuaicarr23-Jan-07 14:39
shuaicarr23-Jan-07 14:39 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Michael Dunn23-Jan-07 15:37
sitebuilderMichael Dunn23-Jan-07 15:37 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Alain Rist24-Jan-07 0:16
Alain Rist24-Jan-07 0:16 

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.