0
一行代碼一個已經工作了,只要我能記得突然停止工作,它現在拋出一個AccessViolationException:AseConnection.Open()拋出AccessViolationException
例外:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that
other memory is corrupt.
Source=Sybase.Data.AseClient
StackTrace:
at Sybase.Data.AseClient.AseConnectionPool.ᜀ(AseConnection A_0)
at Sybase.Data.AseClient.AseConnectionPoolManager.ᜀ(String A_0, AseConnection A_1)
at Sybase.Data.AseClient.AseConnection.Open()
InnerException:
代碼:
using (var connection = new AseConnection(this.ConnectionString))
{
using (var command = connection.CreateCommand())
{
command.CommandText = "select * from TABLE_NAME";
command.Connection.Open();
...
我已經重新啓動我的Mac hine,檢查最近的Windows更新,運行CHKDSK,卸載並重新安裝Sybase,但似乎沒有任何工作!
我針對使用一個64位的Sybase 12.5.4客戶端Sybase.Data.AseClient.dll在我的代碼引用(版本相同生產代碼 - 這是工作沒有問題)一個的Sybase數據庫12.5.4和sybdrvado11。 DLL在應用程序運行時可用。從字面上看,沒有什麼自從上次工作以來已經發生了變化。
使用蟾蜍,我仍然能夠連接並與數據庫進行交互,所以它看起來像這個問題隻影響我的代碼。
有沒有人遇到過這個問題?