我得到這個錯誤在我的VB.NET代碼。任何人都有關於它可能是什麼或如何排除故障的想法。我正在使用SQL Server 2008,並且此錯誤不會一致發生。看起來完全發生隨機且似乎不被從我的代碼始發:DbConnection池錯誤(Microsoft.Win32.SafeNativeMethods.ReleaseSemaphore)
MESSAGE: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Microsoft.Win32.SafeNativeMethods.ReleaseSemaphore(SafeWaitHandle handle, Int32 releaseCount, Int32& previousCount)
at System.Threading.Semaphore.Release(Int32 releaseCount)
at System.Data.ProviderBase.DbConnectionPool.PutNewObject(DbConnectionInternal obj)
at System.Data.ProviderBase.DbConnectionPool.DeactivateObject(DbConnectionInternal obj)
at System.Data.ProviderBase.DbConnectionPool.ReclaimEmancipatedObjects()
at System.Data.ProviderBase.DbConnectionPool.PoolCreateRequest(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)