Re: " //Clean Up managed resources " f&*ck
- From: "Koliber (js)" <profesor_kinbote@xxxxxxxxxxxxxx>
- Date: 19 May 2007 05:32:20 -0700
Oundersn 18 Maj, 22:45, "Nicholas Paldino [.NET/C# MVP]"
<m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Koliber,I do not understand why sql connection is as you say managed resource
SqlConnection is a managed resource. An example of an unmanaged
resource is a window handle that you obtained by calling unmanaged code, or
a file handle, or a socket handle, or any kind of pointer or handle that you
are holding onto which is not managed by the CLR.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx
when file handle
is not managed resource I do not understand the difference between
managed and unmanaged
resource - seem to me that all such resources you are tokin are
unmanaged. They are unamanaged
by GC and with dispose(false) in finalizer should be cleaned - but
maybe i am wrong Shoul there
sql connection be not closed by finalisers and only by dispose - that
is this difference? i do not understand it
good
.
- Follow-Ups:
- Re: Clean up resources
- From: BLUE
- Re: " //Clean Up managed resources " f&*ck
- From: Moty Michaely
- Re: Clean up resources
- References:
- " //Clean Up managed resources " f&*ck
- From: Koliber (js)
- Re: " //Clean Up managed resources " f&*ck
- From: Nicholas Paldino [.NET/C# MVP]
- Re: " //Clean Up managed resources " f&*ck
- From: Koliber (js)
- Re: " //Clean Up managed resources " f&*ck
- From: Nicholas Paldino [.NET/C# MVP]
- " //Clean Up managed resources " f&*ck
- Prev by Date: Re: " //Clean Up managed resources " f&*ck
- Next by Date: Re: " //Clean Up managed resources " f&*ck
- Previous by thread: Re: " //Clean Up managed resources " f&*ck
- Next by thread: Re: " //Clean Up managed resources " f&*ck
- Index(es):
Relevant Pages
|