Click here to Skip to main content
15,900,706 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to know when mouse is clicked on gridview's column header. Pin
Santhosh N27-Jan-09 23:00
Santhosh N27-Jan-09 23:00 
QuestionGarbage collection Pin
anishkannan26-Jan-09 17:57
anishkannan26-Jan-09 17:57 
AnswerRe: Garbage collection Pin
Bharat Jain26-Jan-09 20:18
Bharat Jain26-Jan-09 20:18 
GeneralRe: Garbage collection Pin
anishkannan26-Jan-09 20:40
anishkannan26-Jan-09 20:40 
AnswerRe: Garbage collection Pin
Vikram A Punathambekar26-Jan-09 21:44
Vikram A Punathambekar26-Jan-09 21:44 
GeneralRe: Garbage collection Pin
Guffa27-Jan-09 13:31
Guffa27-Jan-09 13:31 
GeneralRe: Garbage collection Pin
Vikram A Punathambekar28-Jan-09 3:12
Vikram A Punathambekar28-Jan-09 3:12 
AnswerRe: Garbage collection Pin
Guffa27-Jan-09 13:41
Guffa27-Jan-09 13:41 
anishkannan wrote:
I am new in c# application. i want to Control memory leak and not exceed 30mb in Task manager memory status.


As mentioned in the thread, the task manager does not give you an accurate measure of the amount of memory used.

As you are new to C# you are probably new to how the .NET memory management works. It allocates more memory if needed, but does not return it just because it's unused at the moment, but rather when the system needs it.

A system doesn't run better from having a lot of unused memory. On the contrary, trying to minimise the memory usage when there is no need for the memory is just unnecessary work for the system.

anishkannan wrote:
now in our application the memory status is 42mb. memory size will rise if open a new GUI.
But the memory size suddenly low up to 5~10mb if minimize that GUI.


That is perfectly normal. When you minimise the application, the system sends a signal to it to try to free up some unused memory.

anishkannan wrote:
And how can handle this.


It doesn't need handling. The memory management in .NET takes care of it all.

anishkannan wrote:
where i written That( Garbage collection) code.


Don't mess with the garbage collector unless you really have an actual memory management problem. That is quite rare, and your situation is definitely not it.

Despite everything, the person most likely to be fooling you next is yourself.

QuestionCreating XML using DataSet.WriteXml, including columns containing NULL Pin
K V Sekhar26-Jan-09 17:24
K V Sekhar26-Jan-09 17:24 
AnswerRe: Creating XML using DataSet.WriteXml, including columns containing NULL Pin
PIEBALDconsult26-Jan-09 18:21
mvePIEBALDconsult26-Jan-09 18:21 
QuestionExtract data from image Pin
Member 314727926-Jan-09 16:35
Member 314727926-Jan-09 16:35 
AnswerRe: Extract data from image Pin
Vikram A Punathambekar26-Jan-09 16:40
Vikram A Punathambekar26-Jan-09 16:40 
AnswerRe: Extract data from image Pin
vaghelabhavesh26-Jan-09 16:42
vaghelabhavesh26-Jan-09 16:42 
GeneralRe: Extract data from image Pin
Member 314727926-Jan-09 18:14
Member 314727926-Jan-09 18:14 
GeneralRe: Extract data from image Pin
benjymous26-Jan-09 23:36
benjymous26-Jan-09 23:36 
QuestionChange background color of an image Pin
Xmen Real 26-Jan-09 13:52
professional Xmen Real 26-Jan-09 13:52 
AnswerRe: Change background color of an image Pin
Guffa26-Jan-09 14:03
Guffa26-Jan-09 14:03 
GeneralRe: Change background color of an image Pin
Xmen Real 26-Jan-09 14:52
professional Xmen Real 26-Jan-09 14:52 
GeneralRe: Change background color of an image Pin
Guffa26-Jan-09 19:39
Guffa26-Jan-09 19:39 
GeneralRe: Change background color of an image [modified] Pin
Xmen Real 26-Jan-09 22:09
professional Xmen Real 26-Jan-09 22:09 
AnswerRe: Change background color of an image Pin
PandemoniumPasha26-Jan-09 19:33
PandemoniumPasha26-Jan-09 19:33 
GeneralRe: Change background color of an image Pin
Xmen Real 26-Jan-09 21:57
professional Xmen Real 26-Jan-09 21:57 
QuestionDataRows with no primary key, and listbox items Pin
Lodeclaw26-Jan-09 13:27
Lodeclaw26-Jan-09 13:27 
AnswerRe: DataRows with no primary key, and listbox items Pin
Wendelius27-Jan-09 3:34
mentorWendelius27-Jan-09 3:34 
Questionswitch on computer Pin
eMOx26-Jan-09 11:11
eMOx26-Jan-09 11:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.