Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

connection->Dispose() exception

234318Nov 25 2002
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2002
Added on Nov 25 2002
1 comment
346 views