Li Bel

Li Bel

  • NA
  • 13
  • 4.4k

c# System.AccessViolationException Oracle.DataAccess.dll

Jun 7 2017 9:13 AM
Here is my code (just a portion) :
if (!conn.State.Equals(ConnectionState.Open)) 
   conn.Open();   
cmd = new OracleCommand(); 
cmd.Connection = conn; 
cmd.CommandText = sql; 
cmd.CommandType = CommandType.Text;   
dr = cmd.ExecuteReader(); 
if (!dr.HasRows) return null; 
dt = new DataTable(); 
dt.Load(dr);   
conn.Dispose(); 

I have 10 tables to extract from Oracle.
I 've got this error only for two of them when try to load :
Une exception non gérée du type 'System.AccessViolationException' s'est produite dans Oracle.DataAccess.dll

Informations supplémentaires : Tentative de lecture ou d'écriture de mémoire protégée. Cela indique souvent qu'une autre mémoire est endommagée.

I have installed Oracle.DataAccess from Nuget gallery of Visual Studio 2015.
Oracle.DataAccess.x86.4.4.112.3
Anybody to help me ? Thanks in advance.


Answers (1)