J
John
My app running under iis was experiencing crashes when I started using
ODP.NET 9.2.0.4.01, with the Oracle client 9.2.0.1.0 to replace legacy
ADO calls. (I also tried with the new 10 client and ODP.NET 10 with
the same behavior). After a couple of weeks of painfully unfruitfull
debugging and help from MS techies, I finally discovered that the
app's stability issues were being caused by multiple calls to the
Dispose methods of OracleConnection,and/or OracleCommand and/or
OracleDataReader classes. I didn't have time to investigate which of
these objects was the culprit, or under exactly what circumstances
calling Dispose twice would cause problems, only that the problem
occured when these objects where finalized after having called Dispose
more than once. From what the MS techies tell me, one of these objects
tries to free memory that has already been freed.
According to this, Dispose should be callable mutliple times without
side effects.
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconImplementingDisposeMethod.asp
I don't have time to look into this any further. Had I more details I
would open a bug with Oracle. Please add more info if you have
experienced this problem, hopefully someone will pick up the trail
where I have left off.
ODP.NET 9.2.0.4.01, with the Oracle client 9.2.0.1.0 to replace legacy
ADO calls. (I also tried with the new 10 client and ODP.NET 10 with
the same behavior). After a couple of weeks of painfully unfruitfull
debugging and help from MS techies, I finally discovered that the
app's stability issues were being caused by multiple calls to the
Dispose methods of OracleConnection,and/or OracleCommand and/or
OracleDataReader classes. I didn't have time to investigate which of
these objects was the culprit, or under exactly what circumstances
calling Dispose twice would cause problems, only that the problem
occured when these objects where finalized after having called Dispose
more than once. From what the MS techies tell me, one of these objects
tries to free memory that has already been freed.
According to this, Dispose should be callable mutliple times without
side effects.
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconImplementingDisposeMethod.asp
I don't have time to look into this any further. Had I more details I
would open a bug with Oracle. Please add more info if you have
experienced this problem, hopefully someone will pick up the trail
where I have left off.