Home
Level Extreme platform
Subscription
Corporate profile
Products & Services
Login
FRANÇAIS
Home
FRANÇAIS
Level Extreme platform
Login
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Français
How to release object stored in property?
Message
From
01/05/2009 11:54:51
Mike Beane
Round Lake
,
Illinois
,
United States
To
01/05/2009 11:08:37
Bruce Kuyper
Summit Datanet
Helena
,
Montana
,
United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Re:
How to release object stored in property?
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:
01397444
Views:
33
>>Hi,
>>I initialize object to private vairable via
>>
>>public class MyBase
>>{
>>private MyClass _myClass = new MyClass();
>>}
>>
>>I found that it caused memory leak as it is not released. May I know how should I release it once myBase is released?
>>
>>Thank you
>
>Take a look at these references
>
>
http://www.bluebytesoftware.com/blog/PermaLink.aspx?guid=88e62cdf-5919-4ac7-bc33-20c06ae539ae
>
http://lyontamers.com/blogs/jimlyon/archive/2008/08/29/garbage-collection-finalizers-and-dispose-what-every-c-programmer-should-know.aspx
Thank you for the links. I sort of did have the impression that the .NET garbage collector takes care of things for me and I only need to implement Dispose() for expensive resources. I think I know better now.
Previous
Next
Reply
Map
View the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only
Click here to load this message in the networking platform
Level Extreme platform
Best practices
Testimonials
Downloads
Articles
Subscription
Subscribe or renew
Benefits
Donate 5$
Donate 10$
Donate 15$
Donate 20$
Donate 25$
Corporate profile
Overview
Portfolio
Products & Services
Consulting services
Enterprise hosting
Web Site Hosting
Graphic design
Book publishing
Support
Troubleshooting
Problem with logins
Contact us
Legal
Copyright
Privacy policy
Terms & Conditions
Login
Google
Copyright © 1993-2024 by Level Extreme Inc. All rights reserved · Website by
levelextreme.com