Ok, but how does an exception fit in? You need to know if there was an
error to log it or do additional stuff (like MsgBox.Show etc.).
How about this:
try
{
using (resource)
{
}
}
catch (Exception ex)
{
// resource already freed
}
or
using (resource)
{
try
{
}
catch (Exception ex)
{
// can still access resource here
}
}
--
Jaroslaw Kowalski
http://blog.jkowalski.net/
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list