Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release object stored in property?
Message
 
 
À
30/04/2009 10:20:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01397173
Message ID:
01397198
Vues:
45
>Hi,
>Something to add on is that, I used to try to call MyClass.Dispose() at any MyContainer.Dispose(). However, the value of the property that stored reference of MyClass is null. It cause error when I call dispose.
>
>When the property is null, does it meant it is released from memory? In my testing, it doesn't.
>
>Please advice.
>
>Thank you

In the Programming C# book from WROX I had (from the library) there was a great chapter on garbage collection with the sample implementation. Is there any chance for you to take this book from the local store/library for some time?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform