Click here to Skip to main content
15,503,143 members
Home / Discussions / COM
   

COM

 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 10:39
mveRichard MacCutchan30-Jan-13 10:39 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow30-Jan-13 10:58
ForNow30-Jan-13 10:58 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 11:10
mveRichard MacCutchan30-Jan-13 11:10 
GeneralFound the Answer PLease Read Pin
ForNow30-Jan-13 11:34
ForNow30-Jan-13 11:34 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow30-Jan-13 15:51
ForNow30-Jan-13 15:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
Richard MacCutchan30-Jan-13 22:51
mveRichard MacCutchan30-Jan-13 22:51 
GeneralRe: DISP_E_UNKNOWNNAME from GetIDsOfNames Pin
ForNow1-Feb-13 10:25
ForNow1-Feb-13 10:25 
QuestionAppCrash Issue related to COM? Pin
Tony Tullemans24-Jan-13 14:17
Tony Tullemans24-Jan-13 14:17 
Greetings!

I have a complex scheduling application written in VB.NET (.NET Framework 4.0) that must use a Data Access Layer consisting of a bunch of C++ DLLs which are in-turn accessed via a COM API library. Of course when the COM API is referenced in the VB.NET application an Interop Assembly is created by Visual Studio.

The problem I am having is that some users are experiencing an APPCRASH (c0000005 exception code) several times per day, but this only occurs if they have the my application open all of the time and they are continually moving between it and other apps (e.g. to MS Word or MS Outlook etc). The APPCRASH occurs as soon as the shift their focus back to my application. I do have a suspicion as to why this may be occurring but my lack of knowledge of the way in which Windows and the .NET Framework manage memory precludes me from being sure.

My suspicion is that when users are using other applications for some time, and Windows requires more memory for those other apps, that it caches my app’s memory to disk. When they return to my app then Windows loads it back into memory, but because I am using COM it is placing the COM related memory into a different address and then when my app attempts to access the COM objects then an Access Violation is occurring and hence the APPCRASH. The faulting module is nearly always the COM API library, but sometimes it is ntdll.dll or clr.dll.

Does this sound like a reasonable hypothesis? And if so, what are my options (if any) for resolving this?

Here are a sample of problem signature traces. Note that they do not all have the same faulting module.

Signature du problème :
Nom d’événement de problème: APPCRASH
Application Name: VM2305.EXE
Application Version: 2.1.0.5
Application Timestamp: 4f44820b
Fault Module Name: a4wcomex.dll
Fault Module Version: 6.0.0.0
Fault Module Timestamp: 4cfb1354
Exception Code: c0000005
Exception Offset: 0001de92
Version du système: 6.0.6002.2.2.0.768.3
Identificateur de paramètres régionaux: 3084

Problem signature:
Problem Event Name: APPCRASH
Application Name: VM2305.EXE
Application Version: 2.1.0.9
Application Timestamp: 4fa218fd
Fault Module Name: clr.dll
Fault Module Version: 4.0.30319.261
Fault Module Timestamp: 4ec9f6ff
Exception Code: c0000005
Exception Offset: 00020ed1
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 4105
Additional Information 1: 93e2
Additional Information 2: 93e2ab0171a7a6ff1415f9bd2ed3bdf7
Additional Information 3: be03
Additional Information 4: be03af409f1ea363e69fa074d659b668

Problem signature:
Problem Event Name: APPCRASH
Application Name: VM2305.EXE
Application Version: 2.1.0.10
Application Timestamp: 4faca846
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 08000400
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 3084
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Problem signature:
Problem Event Name: APPCRASH
Application Name: VM2305.EXE
Application Version: 2.1.0.10
Application Timestamp: 4faca846
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 41080414
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 3084
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Problem signature:
Problem Event Name: APPCRASH
Application Name: VM2305.EXE
Application Version: 2.1.0.16
Application Timestamp: 4fea898a
Fault Module Name: a4wcomex.dll
Fault Module Version: 6.0.0.0
Fault Module Timestamp: 4cfb1354
Exception Code: c0000005
Exception Offset: 0001de92
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 4105
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
AnswerRe: AppCrash Issue related to COM? Pin
Richard MacCutchan25-Jan-13 0:01
mveRichard MacCutchan25-Jan-13 0:01 
GeneralRe: AppCrash Issue related to COM? Pin
Tony Tullemans28-Jan-13 12:28
Tony Tullemans28-Jan-13 12:28 
GeneralRe: AppCrash Issue related to COM? Pin
Richard MacCutchan28-Jan-13 23:32
mveRichard MacCutchan28-Jan-13 23:32 
AnswerRe: AppCrash Issue related to COM? Pin
Stephen Hewitt27-Jan-13 15:13
Stephen Hewitt27-Jan-13 15:13 
Questionuse webbrowser to visit many webs without a break cause crash Pin
BCN-16321-Jan-13 15:52
BCN-16321-Jan-13 15:52 
QuestionHow to register a com exe without admin rights? Pin
Hari-Adarapu11-Jan-13 10:37
Hari-Adarapu11-Jan-13 10:37 
AnswerRe: How to register a com exe without admin rights? Pin
Richard MacCutchan12-Jan-13 1:10
mveRichard MacCutchan12-Jan-13 1:10 
GeneralRe: How to register a com exe without admin rights? Pin
Marius Bancila23-Jan-13 11:37
professionalMarius Bancila23-Jan-13 11:37 
GeneralRe: How to register a com exe without admin rights? Pin
Richard MacCutchan23-Jan-13 23:48
mveRichard MacCutchan23-Jan-13 23:48 
GeneralRe: How to register a com exe without admin rights? Pin
Marius Bancila24-Jan-13 4:07
professionalMarius Bancila24-Jan-13 4:07 
QuestionWhat type of permissions are needed to resolve Acccess denied for GetDsOfNames to registry entry HKCR\Typelib Pin
ForNow7-Jan-13 12:41
ForNow7-Jan-13 12:41 
AnswerRe: What type of permissions are needed to resolve Acccess denied for GetDsOfNames to registry entry HKCR\Typelib Pin
Richard MacCutchan7-Jan-13 23:20
mveRichard MacCutchan7-Jan-13 23:20 
QuestionCreating .OCX file hangs Pin
ForNow1-Jan-13 18:44
ForNow1-Jan-13 18:44 
QuestionGetIDsOfNames returning -1 Pin
ForNow27-Dec-12 13:28
ForNow27-Dec-12 13:28 
AnswerRe: GetIDsOfNames returning -1 Pin
Richard MacCutchan27-Dec-12 22:48
mveRichard MacCutchan27-Dec-12 22:48 
QuestionMixing native OLE with MFC interface/wrappers Pin
ForNow26-Dec-12 16:30
ForNow26-Dec-12 16:30 
AnswerRe: Mixing native OLE with MFC interface/wrappers Pin
DriveByCoder24-Mar-15 8:41
professionalDriveByCoder24-Mar-15 8:41 

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.