Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implementing IDisposable in a class
Message
 
À
14/02/2014 16:14:14
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594093
Message ID:
01594388
Vues:
31
>I actually prefer to have the disposable feature at the class level so I do not have to negotiate with that in the client class.
>
>Actually, I almost do not have any Using in a client application. All the Using, whereas any problematic of failure, memory leak and so on, are all plugged into the framework. Which is where I believe they all should be. So, any developer following the standards for development a new application, do not have to worry about that.

I'm not sure I understand this. Since Using ... End Using is a block in VB, it is difficult to "plug into the framework" no? My understanding is that it allows us to use an "unmanaged" resource, and control when that resource is relinquished, as opposed to wait until the Garbage Collector kicks in. Managing resources is a Client Application thing no?

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform