0

第三方应用程序通过 IDispatch 接口使用我们的代码 (C# .NET 2.0)。偶尔退出后,第三方应用程序会崩溃,类型为The instruction at "0x..." referenced memorty at "0x...". The memory could not be "read".第三方应用程序仅在使用我们的 DLL 时才会崩溃,所以我开始的假设是我们的代码正在执行(或未执行)的某些事情导致了这种情况。调试我们的错误的最佳方法是什么?

谢谢

编辑:我使用此处提供的设置启用了用户模式应用程序转储

http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

这是转储摘要 - 我没有源代码,但我正在徘徊,是否可以从中确定任何有用的东西。

转储摘要

Last Write Time:    5/30/2012 9:25:50 AM
Process Architecture:   x86
Exception Code: 0xC0000005
Exception Information:  The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:   Not Present

系统信息

OS Version: 6.1.7601
CLR Version(s): 2.0.50727.5456

模块

Module Name Module Path Module Version
----------- ----------- --------------
ThirdPartyApp   C:\Program Files\...
ntdll.dll   C:\Windows\System32\ntdll.dll   6.1.7601.17725
kernel32.dll    C:\Windows\System32\kernel32.dll    6.1.7601.17651
KERNELBASE.dll  C:\Windows\System32\KERNELBASE.dll  6.1.7601.17651
user32.dll  C:\Windows\System32\user32.dll  6.1.7601.17514
gdi32.dll   C:\Windows\System32\gdi32.dll   6.1.7601.17514
lpk.dll C:\Windows\System32\lpk.dll 6.1.7600.16385
usp10.dll   C:\Windows\System32\usp10.dll   1.626.7601.17514
msvcrt.dll  C:\Windows\System32\msvcrt.dll  7.0.7601.17744
advapi32.dll    C:\Windows\System32\advapi32.dll    6.1.7601.17514
sechost.dll C:\Windows\System32\sechost.dll 6.1.7600.16385
rpcrt4.dll  C:\Windows\System32\rpcrt4.dll  6.1.7601.17514
oleaut32.dll    C:\Windows\System32\oleaut32.dll    6.1.7601.17676
ole32.dll   C:\Windows\System32\ole32.dll   6.1.7601.17514
odbc32.dll  C:\Windows\System32\odbc32.dll  6.1.7601.17514
comctl32.dll    C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll 5.82.7601.17514
olepro32.dll    C:\Windows\System32\olepro32.dll    6.1.7601.17514
shell32.dll C:\Windows\System32\shell32.dll 6.1.7601.17755
shlwapi.dll C:\Windows\System32\shlwapi.dll 6.1.7601.17514
imm32.dll   C:\Windows\System32\imm32.dll   6.1.7601.17514
msctf.dll   C:\Windows\System32\msctf.dll   6.1.7600.16385
odbcint.dll C:\Windows\System32\odbcint.dll 6.1.7600.16385
CRYPTBASE.dll   C:\Windows\System32\CRYPTBASE.dll   6.1.7600.16385
uxtheme.dll C:\Windows\System32\uxtheme.dll 6.1.7600.16385
dwmapi.dll  C:\Windows\System32\dwmapi.dll  6.1.7600.16385
bcrypt.dll  C:\Windows\System32\bcrypt.dll  6.1.7600.16385
bcryptprimitives.dll    C:\Windows\System32\bcryptprimitives.dll    6.1.7600.16385
sqlsrv32.dll    C:\Windows\System32\sqlsrv32.dll    6.1.7601.17514
crypt32.dll C:\Windows\System32\crypt32.dll 6.1.7601.17514
msasn1.dll  C:\Windows\System32\msasn1.dll  6.1.7601.17514
netapi32.dll    C:\Windows\System32\netapi32.dll    6.1.7601.17514
netutils.dll    C:\Windows\System32\netutils.dll    6.1.7601.17514
srvcli.dll  C:\Windows\System32\srvcli.dll  6.1.7601.17514
wkscli.dll  C:\Windows\System32\wkscli.dll  6.1.7601.17514
version.dll C:\Windows\System32\version.dll 6.1.7600.16385
mtxdm.dll   C:\Windows\System32\mtxdm.dll   2001.12.8530.16385
clbcatq.dll C:\Windows\System32\clbcatq.dll 2001.12.8530.16385
comsvcs.dll C:\Windows\System32\comsvcs.dll 2001.12.8530.16385
atl.dll C:\Windows\System32\atl.dll 3.5.2284.0
cryptsp.dll C:\Windows\System32\cryptsp.dll 6.1.7600.16385
rsaenh.dll  C:\Windows\System32\rsaenh.dll  6.1.7600.16385
RpcRtRemote.dll C:\Windows\System32\RpcRtRemote.dll 6.1.7601.17514
sqlsrv32.rll    C:\Windows\System32\sqlsrv32.rll    6.1.7600.16385
sspicli.dll C:\Windows\System32\sspicli.dll 6.1.7601.17725
odbccp32.dll    C:\Windows\System32\odbccp32.dll    6.1.7601.17632
dbnetlib.dll    C:\Windows\System32\dbnetlib.dll    6.1.7600.16385
ws2_32.dll  C:\Windows\System32\ws2_32.dll  6.1.7601.17514
nsi.dll C:\Windows\System32\nsi.dll 6.1.7600.16385
security.dll    C:\Windows\System32\security.dll    6.1.7600.16385
secur32.dll C:\Windows\System32\secur32.dll 6.1.7601.17725
credssp.dll C:\Windows\System32\credssp.dll 6.1.7601.17514
msv1_0.dll  C:\Windows\System32\msv1_0.dll  6.1.7601.17514
cryptdll.dll    C:\Windows\System32\cryptdll.dll    6.1.7600.16385
ntdsapi.dll C:\Windows\System32\ntdsapi.dll 6.1.7600.16385
mswsock.dll C:\Windows\System32\mswsock.dll 6.1.7601.17514
WSHTCPIP.DLL    C:\Windows\System32\WSHTCPIP.DLL    6.1.7600.16385
wship6.dll  C:\Windows\System32\wship6.dll  6.1.7600.16385
dnsapi.dll  C:\Windows\System32\dnsapi.dll  6.1.7601.17570
IPHLPAPI.DLL    C:\Windows\System32\IPHLPAPI.DLL    6.1.7601.17514
winnsi.dll  C:\Windows\System32\winnsi.dll  6.1.7600.16385
rasadhlp.dll    C:\Windows\System32\rasadhlp.dll    6.1.7600.16385
FWPUCLNT.DLL    C:\Windows\System32\FWPUCLNT.DLL    6.1.7601.17514
schannel.dll    C:\Windows\System32\schannel.dll    6.1.7601.17725
ncrypt.dll  C:\Windows\System32\ncrypt.dll  6.1.7600.16385
comdlg32.dll    C:\Windows\System32\comdlg32.dll    6.1.7601.17514
CoCash111.ocx   C:\Program Files\OPOS\Epson2\CoCash111.ocx  1.11.0.1
COBase12.dll    C:\Program Files\OPOS\Epson2\COBase12.dll   1.0.0.2
OReg13.dll  C:\Program Files\OPOS\Epson2\OReg13.dll 1.0.0.7
mfc42.dll   C:\Windows\System32\mfc42.dll   6.6.8064.0
msiltcfg.dll    C:\Windows\System32\msiltcfg.dll    5.0.7600.16385
msi.dll C:\Windows\System32\msi.dll 5.0.7601.17514
DRWSO.dll   C:\OPOS\TEC\DRWSO.dll   1.2.0.7
sxs.dll C:\Windows\System32\sxs.dll 6.1.7601.17514
Coptr15.ocx C:\Program Files\OPOS\Epson2\Coptr15.ocx    1.5.0.1
COBase10.dll    C:\Program Files\OPOS\Epson2\COBase10.dll   1.0.0.1
OReg10.dll  C:\Program Files\OPOS\Epson2\OReg10.dll 1.0.0.1
mscoree.dll C:\Windows\System32\mscoree.dll 4.0.40305.0
mscoreei.dll    C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll  4.0.30319.237
mscorwks.dll    C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll  2.0.50727.5456
msvcr80.dll C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_d08cc06a442b34fc\msvcr80.dll  8.0.50727.4940
profapi.dll C:\Windows\System32\profapi.dll 6.1.7600.16385
mscorlib.ni.dll C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\acfc1391e45fedd2a359778ea57d914c\mscorlib.ni.dll    2.0.50727.5456
2.0.0.74
mscorjit.dll    C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll  2.0.50727.5456
System.ni.dll   C:\Windows\assembly\NativeImages_v2.0.50727_32\System\ce9ff6baf9053ed2ed673d948179195c\System.ni.dll    2.0.50727.5456
mscorsec.dll    C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll  2.0.50727.4927
wintrust.dll    C:\Windows\System32\wintrust.dll    6.1.7601.17787
imagehlp.dll    C:\Windows\System32\imagehlp.dll    6.1.7601.17787
userenv.dll C:\Windows\System32\userenv.dll 6.1.7601.17514
gpapi.dll   C:\Windows\System32\gpapi.dll   6.1.7600.16385
cryptnet.dll    C:\Windows\System32\cryptnet.dll    6.1.7600.16385
Wldap32.dll C:\Windows\System32\Wldap32.dll 6.1.7601.17514
SensApi.dll C:\Windows\System32\SensApi.dll 6.1.7600.16385
cabinet.dll C:\Windows\System32\cabinet.dll 6.1.7601.17514
devrtl.dll  C:\Windows\System32\devrtl.dll  6.1.7600.16385
    C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\ba3d70b651454c7d49b407b93663bfed\System.Xml.ni.dll    2.0.50727.5420
System.Configuration.ni.dll C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Configuration\cfa9c506bfb9254c89dace7b83bc9f9d\System.Configuration.ni.dll    2.0.50727.5420
apphelp.dll C:\Windows\System32\apphelp.dll 6.1.7601.17514
SoPtr12.dll C:\Program Files\OPOS\Epson2\SoPtr12.dll    1.11.0.1
SOBase12.dll    C:\Program Files\OPOS\Epson2\SOBase12.dll   1.11.0.1
PortMg11.dll    C:\Program Files\OPOS\Epson2\PortMg11.dll   1.0.0.2
PT7015.dll  C:\Program Files\OPOS\Epson2\PT7015.dll 1.11.0.3
PComm20.dll C:\Program Files\OPOS\Epson2\PComm20.dll    1.11.0.1
PBase11.dll C:\Program Files\OPOS\Epson2\PBase11.dll    1.11.0.1
PUtil10.dll C:\Program Files\OPOS\Epson2\PUtil10.dll    1.11.0.1
PtrIO20.dll C:\Program Files\OPOS\Epson2\PtrIO20.dll    1.11.0.1
PState17.dll    C:\Program Files\OPOS\Epson2\PState17.dll   1.11.0.1
PData15.dll C:\Program Files\OPOS\Epson2\PData15.dll    1.11.0.3
EPSLOGO.dll C:\Program Files\OPOS\Epson2\EPSLOGO.dll    1.11.0.1
LblBcd01.dll    C:\Program Files\OPOS\Epson2\LblBcd01.dll   1.8.0.0
InfoSharing10.dll   C:\Program Files\OPOS\Epson2\InfoSharing10.dll  1.0.0.1
PDSS11.dll  C:\Program Files\OPOS\Epson2\PDSS11.dll 1.11.0.1
DevStat16.dll   C:\Program Files\OPOS\Epson2\DevStat16.dll  1.11.0.1
OPOSStat.dll    C:\Program Files\OPOS\Epson2\OPOSStat.dll   1.0.0.2
DeviceSharing10.dll C:\Program Files\OPOS\Epson2\DeviceSharing10.dll    1.11.0.2
PortUsb.dll C:\Program Files\OPOS\Epson2\PortUsb.dll    1.0.0.2
UpdtUSB.dll C:\Program Files\OPOS\Epson2\UpdtUSB.dll    1.0.0.3
cfgmgr32.dll    C:\Windows\System32\cfgmgr32.dll    6.1.7601.17514
msxml6.dll  C:\Windows\System32\msxml6.dll  6.30.7601.17514
comctl32.dll    C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll  6.10.7601.17514
raslibc.dll C:\Windows\System32\raslibc.dll 1.2.0.4`
4

0 回答 0