Click here to Skip to main content
15,901,001 members
Home / Discussions / COM
   

COM

 
GeneralRe: Exception in COM Pin
denghp18-Jun-09 22:19
denghp18-Jun-09 22:19 
GeneralRe: Exception in COM Pin
Stuart Dootson18-Jun-09 23:01
professionalStuart Dootson18-Jun-09 23:01 
GeneralRe: Exception in COM Pin
denghp18-Jun-09 23:05
denghp18-Jun-09 23:05 
GeneralRe: Exception in COM Pin
Stuart Dootson18-Jun-09 23:15
professionalStuart Dootson18-Jun-09 23:15 
GeneralRe: Exception in COM Pin
denghp18-Jun-09 23:25
denghp18-Jun-09 23:25 
AnswerRe: Exception in COM Pin
Md. Marufuzzaman6-Jul-09 21:58
professionalMd. Marufuzzaman6-Jul-09 21:58 
QuestionATL COM server crash Pin
Harish Pulimi17-Jun-09 5:36
Harish Pulimi17-Jun-09 5:36 
AnswerRe: ATL COM server crash Pin
Roger Stoltz17-Jun-09 6:42
Roger Stoltz17-Jun-09 6:42 
Harish Pulimi wrote:
the server just vanishes after running successfully for 9-10 hours


I don't understand what you mean by this. How did you reach such conclusion?
As I interpret your complete description it seems like you're describing the expected behaviour.

I'm quite confident that clients don't call FinalConstruct() or FinalRelease() through any interface. Those functions are called internally by the framework. FinalConstruct() is called when the server is created by a client and FinalRelease() is called when the reference count reaches zero and the server consequently should be destroyed.
This means that if you're experiencing a lot of calls to FinalConstruct() and FinalRelease() your server is being created and destroyed multiple times by its client.

If this is not your intention, I suggest you put a breakpoint in FinalRelease() and you should be able to see the origin of the call in the call stack debug window when the breakpoint is hit. It looks like you expected the server to be created once and then stay alive until the application is closed, but this doesn't seem to be the case given your error description.

Perhaps I have misunderstood what you mean by "vanish" and if that's the case please elaborate on the subject a bit. It could mean that CreateInstance() fails after 9-10 hours, but I think you would have written that as a description of the error if this was the case.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: ATL COM server crash Pin
Harish Pulimi17-Jun-09 21:46
Harish Pulimi17-Jun-09 21:46 
GeneralRe: ATL COM server crash Pin
Roger Stoltz18-Jun-09 0:57
Roger Stoltz18-Jun-09 0:57 
GeneralRe: ATL COM server crash Pin
Harish Pulimi10-Feb-10 2:28
Harish Pulimi10-Feb-10 2:28 
GeneralRe: ATL COM server crash Pin
Member 176963118-Jul-11 12:21
Member 176963118-Jul-11 12:21 
QuestionCan we get object size from the Interface pointer? Pin
Mahesh Kulkarni16-Jun-09 22:45
Mahesh Kulkarni16-Jun-09 22:45 
AnswerRe: Can we get object size from the Interface pointer? Pin
Roger Stoltz16-Jun-09 23:52
Roger Stoltz16-Jun-09 23:52 
AnswerRe: Can we get object size from the Interface pointer? Pin
Stephen Hewitt17-Jun-09 3:14
Stephen Hewitt17-Jun-09 3:14 
GeneralRe: Can we get object size from the Interface pointer? Pin
led mike17-Jun-09 4:47
led mike17-Jun-09 4:47 
AnswerRe: Can we get object size from the Interface pointer? Pin
Vi221-Jun-09 22:35
Vi221-Jun-09 22:35 
QuestionCOM (system.__comobject) i need to convert it to byte[] C# Pin
Sander123432116-Jun-09 4:58
Sander123432116-Jun-09 4:58 
AnswerRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
led mike16-Jun-09 5:53
led mike16-Jun-09 5:53 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
Sander123432116-Jun-09 6:28
Sander123432116-Jun-09 6:28 
GeneralRe: COM (system.__comobject) i need to convert it to byte[] C# Pin
led mike16-Jun-09 8:41
led mike16-Jun-09 8:41 
QuestionHow to Interop 2D char from COM function in c# Pin
platso_58816-Jun-09 4:44
platso_58816-Jun-09 4:44 
AnswerRe: How to Interop 2D char from COM function in c# Pin
Stuart Dootson16-Jun-09 8:59
professionalStuart Dootson16-Jun-09 8:59 
Questionhelp me ! resolve this error and tell me . Why ? Pin
chungduy14-Jun-09 17:00
chungduy14-Jun-09 17:00 
AnswerRe: help me ! resolve this error and tell me . Why ? Pin
Stuart Dootson14-Jun-09 23:34
professionalStuart Dootson14-Jun-09 23:34 

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.