[Mono-list] Npgsql error
Jaroslaw Kowalski
jaak at jkowalski.net
Fri Aug 5 04:57:37 EDT 2005
> 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/
More information about the Mono-list
mailing list