I implemented a Dispose method for OracleParameter:
~OracleParameter ()
{
Dispose(false);
}
public void Dispose ()
{
Dispose (true);
}
Are you explicitly calling dispose? Finalizers May not have been run yet
depending on gc etc
On Monday, August 25, 2014, Neale Ferguson nealefergu...@verizon.net
wrote:
I implemented a Dispose method for OracleParameter:
~OracleParameter ()
{
Finalization is not deterministic, it depends on the GC been able to
collect all related objects.
Maybe you have things keeping some of those 700 objects around?
The way I test those things in a way that is reasonably reliable is:
var t = new Thread (myTest);
t.Start ();
t.Join ();
GC.Collect
Do you mean mine not having protected virtual?
On Aug 25, 2014, at 2:00 PM, Jonathan Pryor jonpr...@vt.edu wrote:
Idiomatic IDisposable implementation is slightly different from what you have:
http://msdn.microsoft.com/en-us/library/system.idisposable(v=vs.110).aspx
Idiomatic IDisposable implementation is slightly different from what you have:
http://msdn.microsoft.com/en-us/library/system.idisposable(v=vs.110).aspx
On Aug 25, 2014, at 11:08 AM, Neale Ferguson nealefergu...@verizon.net wrote:
I implemented a Dispose method for OracleParameter: