suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT23308 Status: Closed

.NET APPLICATION MAY FAIL WITH SYSTEM.ACCESSVIOLATIONEXCEPTION EXCEPTION

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
If you have a multi-threaded .NET application, it may fail with
System.AccessViolationException exception and different stacks
when either Dispose() is called prematurely and/or Dispose() is
called twice on the same DB2Command.

Example of stacks ( not exhaustive )

Exception Info: System.AccessViolationException
   at IBM.Data.DB2.UnsafeNativeMethods+DB232.nmpAllocMem(IntPtr,
Int32, IntPtr ByRef)
   at IBM.Data.DB2.DBCWrapper.InitDBCWrapper()
   at
IBM.Data.DB2.DB2Connection.set_ConnectionString(System.String)
   at IBM.Data.DB2.DB2Connection..ctor(System.String)
   at
Exact.Data.Base.BaseConnectionWrapper.CreateConnection(System.St
ring)
   at Exact.BaseBL.get_Connection()


Exception Info: System.AccessViolationException
   at System.Runtime.InteropServices.Marshal.WriteInt64(IntPtr,
Int32, Int64)
   at IBM.Data.DB2.CMDWrapper.DismissStatement(Boolean)
   at IBM.Data.DB2.CMDWrapper.Finalize()

Exception Info: System.AccessViolationException
at
IBM.Data.DB2.UnsafeNativeMethods+DB232.SQLExecDirectADONET(IBM.D
ata.DB2.DB2ExecDirectParameters*)
at
IBM.Data.DB2.DB2Command.ExecuteReaderObject(System.Data.CommandB
ehavior,System.String, IBM.Data.DB2.DB2CursorType, Boolean,
Boolean, Boolean,Int32, Boolean)
at
IBM.Data.DB2.DB2Command.ExecuteReaderObject(System.Data.CommandB
ehavior, System.String)
at
IBM.Data.DB2.DB2Command.ExecuteReader(System.Data.CommandBehavio
r)
at
IBM.Data.DB2.DB2Command.ExecuteDbDataReader(System.Data.CommandB
ehavior)
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 10.5 Fix Pack 10 or higher                    *
****************************************************************
Local Fix:
N/A
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
28.11.2017
19.07.2018
19.07.2018
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)