P
Per Rollvang
Hi all!
I have created a few classes that inherits the IDisposable-interface, and if
I don't use them in this fashion
using(bla bla bla)
{
// do stuff
}
the application seem to raise a 'non-fixable' exception at exit.
Is implementing IDisposable together with 'using' a preferred way to fire
the Dispose method, and not letting the GC handle things)?
I implement IDisposable to have an option to 'clean up' cleaning up exactly
when I want it too happen. Is this correct use of IDisposable?
TIA
Per Rollvang
I have created a few classes that inherits the IDisposable-interface, and if
I don't use them in this fashion
using(bla bla bla)
{
// do stuff
}
the application seem to raise a 'non-fixable' exception at exit.
Is implementing IDisposable together with 'using' a preferred way to fire
the Dispose method, and not letting the GC handle things)?
I implement IDisposable to have an option to 'clean up' cleaning up exactly
when I want it too happen. Is this correct use of IDisposable?
TIA
Per Rollvang