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.