Message: Attempted to read or write protected memory. This is often an indication that other memory
2012-08-10 17:30
651 查看
xp oracle access 链接表
//z 2012-08-10 17:33:09 IS2120@csdn.T3850797830[T70,L664,R22,V685]
总是遇到这个异常,暂无解决方案
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
改用新的jet engine,可以避开该问题。
//z 2012-08-10 17:33:09 IS2120@csdn.T3850797830[T70,L664,R22,V685]
[1240] ____#0 Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[1240] !StackTrace # at System.Data.Common.UnsafeNativeMethods.ICommandText.Execute(IntPtr pUnkOuter, Guid& riid, tagDBPARAMS pDBParams, IntPtr& pcRowsAffected, Object& ppRowset)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
用windbg看了下,具体而表面的原因是msjet40.dll内部出错了,传给 wcscpy 的两个参数都存在问题
FAULTING_IP:
msjet40!wcscpy+12
1b00b5d7 668908 mov word ptr [eax],cx
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 1b00b5d7 (msjet40!wcscpy+0x00000012)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000001
Parameter[1]: 00000000
Attempt to write to address 00000000
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx" referenced memory at "0x%08lx". The memory could not be "%s".
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx" referenced memory at "0x%08lx". The memory could not be "%s".
EXCEPTION_CODE_STR: c0000005
EXCEPTION_PARAMETER1: 00000001
EXCEPTION_PARAMETER2: 00000000
WRITE_ADDRESS: 00000000
FOLLOWUP_IP:
msjet40!wcscpy+12
1b00b5d7 668908 mov word ptr [eax],cx
WATSON_BKT_MODULE: msjet40.dll
WATSON_BKT_MODVER: 4.0.9511.0
MODULE_VER_PRODUCT: Microsoft (R) Jet
BUILD_VERSION_STRING: 5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)
MANAGED_STACK:
(TransitionMU)
0022E0CC 146B7E37 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(System.Data.OleDb.tagDBPARAMS, System.Object ByRef)+0xe3
0022E0EC 146B7FFD System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommandText(System.Object ByRef)+0xbd
0022E124 146B7347 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommand(System.Data.CommandBehavior, System.Object ByRef)+0x3b
0022E138 146B70A2 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(System.Data.CommandBehavior, System.String)+0xa2
0022E17C 146B7B42 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteNonQuery()+0x72
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
//z 2012-08-10 17:33:09 IS2120@csdn.T3850797830[T70,L664,R22,V685]
总是遇到这个异常,暂无解决方案
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
改用新的jet engine,可以避开该问题。
//z 2012-08-10 17:33:09 IS2120@csdn.T3850797830[T70,L664,R22,V685]
[1240] ____#0 Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
[1240] !StackTrace # at System.Data.Common.UnsafeNativeMethods.ICommandText.Execute(IntPtr pUnkOuter, Guid& riid, tagDBPARAMS pDBParams, IntPtr& pcRowsAffected, Object& ppRowset)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
[1240] at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
用windbg看了下,具体而表面的原因是msjet40.dll内部出错了,传给 wcscpy 的两个参数都存在问题
FAULTING_IP:
msjet40!wcscpy+12
1b00b5d7 668908 mov word ptr [eax],cx
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 1b00b5d7 (msjet40!wcscpy+0x00000012)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000001
Parameter[1]: 00000000
Attempt to write to address 00000000
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx" referenced memory at "0x%08lx". The memory could not be "%s".
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at "0x%08lx" referenced memory at "0x%08lx". The memory could not be "%s".
EXCEPTION_CODE_STR: c0000005
EXCEPTION_PARAMETER1: 00000001
EXCEPTION_PARAMETER2: 00000000
WRITE_ADDRESS: 00000000
FOLLOWUP_IP:
msjet40!wcscpy+12
1b00b5d7 668908 mov word ptr [eax],cx
WATSON_BKT_MODULE: msjet40.dll
WATSON_BKT_MODVER: 4.0.9511.0
MODULE_VER_PRODUCT: Microsoft (R) Jet
BUILD_VERSION_STRING: 5.1.2600.5781 (xpsp_sp3_gdr.090321-1317)
MANAGED_STACK:
(TransitionMU)
0022E0CC 146B7E37 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(System.Data.OleDb.tagDBPARAMS, System.Object ByRef)+0xe3
0022E0EC 146B7FFD System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommandText(System.Object ByRef)+0xbd
0022E124 146B7347 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteCommand(System.Data.CommandBehavior, System.Object ByRef)+0x3b
0022E138 146B70A2 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(System.Data.CommandBehavior, System.String)+0xa2
0022E17C 146B7B42 System_Data_ni!System.Data.OleDb.OleDbCommand.ExecuteNonQuery()+0x72
//z 2012-08-13 17:07:41 IS2120@csdn.T2028960486[T86,L1205,R32,V819]
相关文章推荐
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- System.AccessViolationException: Attempted to read or write protected memory This is often an indication that other memory is corrupt
- System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
- 关于accessviolationexception. Attempted to read or write protected memory. This is often an indication that other memory is corrup
- System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- C#调用haskell遭遇Attempted to read or write protected memory
- c# 传递Null的string值导致的调用C++的dll报错 Attempted to read or write protected memory.
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split lib_slice_8_apk was defined multiple times. It is possible that this issue is resolved by uninstalling a
- Installation failed with message...It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
- Trying to use an SPWeb object that has been closed or disposed and is no longer valid.
- The installer cannot read the mwinstall.dll file, This is probably due to a CD reader which can only read files with an eight.th
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- Installation failed with message Failed to establish session. It is possible that this issue is reso
- Waring:This LinearLayout layout or its FrameLayout parent is useless; transfer the background attribute to the other view
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- THIS IS AN AUTO-GENERATED MESSAGE - PLEASE DO NOT REPLY TO THIS MESSAGE
- Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column is set to 0.
- Installation failed with message...It is possible that this issue is resolved by uninstalling an exi
- Trying to use an SPWeb object that has been closed or disposed and is no longer valid.