Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Differences with a destroyer
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Versions des environnements
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01364440
Message ID:
01364482
Vues:
17
>In Visual C++.Net what is the difference between destroyer,Finalize and Dispose?
>Thank you in advance
>Luis Martin

This is C#.NET, not C++.NET, so I can't promise it's the same. In C#.NET the Finalize() method cannot be called directly but is invoked by the garbage collector when an object is cleaned up. Normally it does not need to be coded. The exception is if the object utilized unmanaged resources like COM objects. Dispose() is similar but can be called. Its purpose is to release so-called precious resources like database connections immediately rather than waiting for the garbage collector to release them.

Actually I suspect it's the same in C++. It's a .NET thing, not a language thing.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform