473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Re: memory managment

Fred wrote:
Hello,

When a control is disposed, should it first set its Tag property (if
present) to null ?

I use a commercial control and I saw (with a .NET memory profiler) that
the objects I put in this property were not collected even when the
control is disposed (until I set the tag
property to null)
If you hang on to the control a long time after it has been disposed,
you can set the Tag property to null to make thae object that it
references collectable.

Otherwise there is rarely any reason to setting references to null. When
the control gets collectable, any objects that it references (and isn't
references from somewhere else) also automatically gets collectable.

--
Göran Andersson
_____
http://www.guffa.com
Jun 27 '08 #1
0 625

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: D. Buck | last post by:
Details: MS SQL 2000 dual Intel 1.2 GHz processors. 1 GB RAM 2.1 GB dB Dynamic Memory Managment. No other apps running on this server. First question: Since I have Dynamic Memory Managment...
3
by: Yves Dhondt | last post by:
Hello, I'm looking for information about the loading/unloading of unmanaged dlls. Using the debugger I think it works as follows : the unmanaged DLL is loaded as soon as a call to one of it's...
2
by: Matthias Kwiedor | last post by:
Hi! I have a small ;) application which needs just to load up the Main Form 40MB (there is a IE Instance implementet). After that i managed with own Memory Managment to need just 10 to 20MB more...
7
by: Casey Leamon | last post by:
I've been noticing that all of my .NET apps seem to progressivly use more and more memory. Even after several reworks of the code I can only manage to slow the growth. Is there some Garbage...
1
by: LP | last post by:
Hello .NET experts A group of develpers here are having some arguements about different ways to write program with minimal memory footprint. One method in buisness class creates an instance of...
1
by: Ashish | last post by:
hi all we have tested out web site for performance and we observed that the asp.net process does disposes memory ( as opposed to my earlier observation ), i was just curious if the asp.net...
18
by: CJ Taylor | last post by:
If I wanted to find out exactly how much memory a particular variable was using, how would I go about that. Or where to look for information would be appreciated. Just need a class/namespace ...
13
by: Nikolay Petrov | last post by:
I've got this issue: When I start my application it takes a lot of memory. I guess this is caused by CLR. That's fine. But every time the app performs an action (open new form, load data in...
1
by: bsimon | last post by:
I've read in the doc that every memory allocation done in a spi memory context was freed at the end of the context (after spi_finish) What happens if the context is is initialized inside another...
2
by: Daniel | last post by:
Hi, I have a question regarding the memory managment in stl stacks. I want to use stacks to store a very large amount of numbers (some millions), thus I'm interested in how the stack behaves...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.