Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release object stored in property?
Message
 
 
To
30/04/2009 10:20:30
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01397173
Message ID:
01397198
Views:
44
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform