Click here to Skip to main content
15,900,433 members
Home / Discussions / COM
   

COM

 
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 
GeneralRe: ATL COM server crash Pin
Harish Pulimi17-Jun-09 21:46
Harish Pulimi17-Jun-09 21:46 
Hi Roger

Thanks a lot for your reply and apologies for not providing more details.

The architecture is like I have an exe which keeps track of all the servers that will be created by the clients through CreateInstance() calls. This exe needs to run all the time and if not already started, it will start through the next CreateInstance() call made by a client. The problem is that the exe runs fine for around 10 hours and after that it suddenly vanishes i.e. the process just stops, there is no crash reported and the exe immediately starts with the next CreateInstance() call but loses all the previous data. This happens only on some PCs, so I tried putting my debug build on that PC, but still there is no exception, no crash reported, so I thought this could be a heap corruption.

To reproduce this, I have created a test harness where around 100 clients continously bombard the exe with CreateInstance() calls and I could get an exception as follows, not sure whether this is the same crash but it seems like similar to the actual problem. Any idea how to debug the exceptions in OLE32.dll?
First-chance exception in AniteLicenser.exe (OLE32.DLL): 0xC0000005: Access Violation.
OLE32! 77600f3b()
OLE32! 77600ee9()
OLE32! 77600ba0()
OLE32! 7752ad31()
OLE32! 7752ac56()
OLE32! 776007f5()
OLE32! 77602df3()
OLE32! 77600715()
RPCRT4! 77e794bd()
RPCRT4! 77e79422()
RPCRT4! 77e7934e()
RPCRT4! 77e8a384()
RPCRT4! 77e8a3c5()
RPCRT4! 77e7bcc1()
RPCRT4! 77e7bc05()
RPCRT4! 77e76caf()
RPCRT4! 77e76ad1()
RPCRT4! 77e76c97()
KERNEL32! 7c80b713()

One time I could get the following call stack, seems something is going wrong in the Release() call, but the same exe runs fine for around 10 hours (100s of instances were created and released successfully in the meantime) and on a different PC, this exe ran fine for around 3 days:
ATL::_QIThunk::Release(ATL::_QIThunk * const 0x0171d440) line 2734 + 11 bytes
OLE32! 7750d339()
OLE32! 7750d09a()
OLE32! 7752deb3()
OLE32! 7752dcc8()
OLE32! 7752db6a()
RPCRT4! 77e799f4()
RPCRT4! 77ef421a()
RPCRT4! 77ef4bf3()
OLE32! 77600c15()
OLE32! 77600bbf()
OLE32! 7752ad31()
OLE32! 7752ac56()
OLE32! 776007f5()
OLE32! 77602df3()
OLE32! 77600715()
RPCRT4! 77e794bd()
RPCRT4! 77e79422()
RPCRT4! 77e7934e()
RPCRT4! 77e8a384()
RPCRT4! 77e8a3c5()
RPCRT4! 77e7bcc1()
RPCRT4! 77e7bc05()
RPCRT4! 77e76caf()
RPCRT4! 77e76ad1()
RPCRT4! 77e76c97()
KERNEL32! 7c80b713()
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 
QuestionCOM wrapper for .net library Pin
noob42013-Jun-09 1:21
noob42013-Jun-09 1:21 

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.