connection->Dispose() exception
I'm getting an exception raised from the Dispose() method on the connection object.
An unhandled exception of type 'System.NullReferenceException' occurred in oracle.dataaccess.dll
Additional information: Object reference not set to an instance of an object.
My programs about as simple as it gets :
static void Main(string[] args)
{
OracleConnection con = new OracleConnection("OS Authent=true;Data Source=DEV;") ;
con.Open() ;
OracleCommand cmd = con.CreateCommand() ;
cmd.CommandText = "select mycolumn from mytable" ;
OracleDataReader rdr = cmd.ExecuteReader() ;
While (rdr.Read())
{
System.Diagnostics.Debug.WriteLine(rdr["mycolumn"].ToString()) ;
}
con.Close() ;
con.Dispose() ;
}
Running Windows 2000 Server SP3. Framework 1.0 SP2
I'm interested in trying to use your provider .vs. Microsoft's
which so far I haven't had any problems with.