, , - - Thread.Abort - , , Thread.Interrupt OutOfMemoryException.
, base.Dispose , - .
Thread.Abort - , m_disposed = true , . , - , , ( ).
finally Thread.Abort - . base.Dispose finally, , , , , ( , finally, - - finally).
- . , , , Dispose, :) Dispose , finally - - , . , Dispose - , .
, , , using, , using, Dispose finally!
using (var bmp = new Bitmap())
{
...
}
Bitmap bmp = null;
try
{
bmp = new Bitmap();
...
}
finally
{
if (bmp != null) bmp.Dispose();
}
, , :)