Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Dispose
Message
De
22/03/2006 08:46:50
 
 
À
22/03/2006 06:21:29
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01106252
Message ID:
01106586
Vues:
21
It makes sense to me that GDI+ uses unmanaged code. I'm still researching the claims that database stuff should always call Finalize. It makes sense for OLEDB, but not managed providers.


>Craig,
>
>GDI+ Pens, Brushes etc. are all wrappers around unmanaged resources.
>
>The Dispose pattern is there to give you a similiar capability to C++ ie. deterministic destruction. Contrary to popular belief, you can still easily leak memory in .NET even with garbage collection.
>
>You should really stay clear of Finalizers (~) and not Dispose.
>
>Regards
>Neil
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform