OracleConnectionPoolManager throws an exception in its finalizer

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.

+3
source share
1 answer

It seems that setting the connection pool to false is a workaround - see https://bugzilla.xamarin.com/show_bug.cgi?id=27546

0
source

All Articles