I am writing a command line tool in Mono that (by the way) connects to our Oracle database. It seems to work fine, but I get this exception at the end:
Unhandled Exception:
System.InvalidCastException: Cannot cast from source type to destination type.
at System.Data.OracleClient.OracleConnectionPoolManager.Dispose () [0x00000] in <filename unknown>:0
at System.Data.OracleClient.OracleConnectionPoolManager.Finalize () [0x00000] in <filename unknown>:0
What's happening? I am tempted to just catch this exception and ignore it ... In addition, I cannot do this because it is thrown out of the finalizer, which is launched after main () returns.
source
share