Click here to Skip to main content
15,907,492 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# HELP...here...about the popup file Pin
liewcp2-Apr-07 16:07
liewcp2-Apr-07 16:07 
AnswerRe: C# HELP...here...about the popup file Pin
Muammar©2-Apr-07 20:02
Muammar©2-Apr-07 20:02 
Questionhow to run exe file in ram (on the fly) ? Pin
hdv2122-Apr-07 15:22
hdv2122-Apr-07 15:22 
AnswerRe: how to run exe file in ram (on the fly) ? Pin
Christian Graus2-Apr-07 15:47
protectorChristian Graus2-Apr-07 15:47 
AnswerRe: how to run exe file in ram (on the fly) ? Pin
Muammar©2-Apr-07 20:05
Muammar©2-Apr-07 20:05 
QuestionHow to know a EXE file was written by .net language or not? Pin
goldli2-Apr-07 15:00
goldli2-Apr-07 15:00 
AnswerRe: How to know a EXE file was written by .net language or not? Pin
Christian Graus2-Apr-07 15:48
protectorChristian Graus2-Apr-07 15:48 
GeneralRe: How to know a EXE file was written by .net language or not? Pin
goldli2-Apr-07 18:19
goldli2-Apr-07 18:19 
GeneralRe: How to know a EXE file was written by .net language or not? Pin
Christian Graus2-Apr-07 22:49
protectorChristian Graus2-Apr-07 22:49 
GeneralRe: How to know a EXE file was written by .net language or not? Pin
goldli2-Apr-07 23:19
goldli2-Apr-07 23:19 
AnswerRe: How to know a EXE file was written by .net language or not? Pin
Muammar©2-Apr-07 20:08
Muammar©2-Apr-07 20:08 
GeneralRe: How to know a EXE file was written by .net language or not? Pin
goldli2-Apr-07 20:29
goldli2-Apr-07 20:29 
AnswerRe: How to know a EXE file was written by .net language or not? Pin
D1113-Apr-07 1:53
D1113-Apr-07 1:53 
AnswerRe: How to know a EXE file was written by .net language or not? Pin
Douglas Troy3-Apr-07 7:53
Douglas Troy3-Apr-07 7:53 
GeneralRe: How to know a EXE file was written by .net language or not? Pin
goldli3-Apr-07 14:11
goldli3-Apr-07 14:11 
QuestionLive rich text box editing Pin
Esmo20002-Apr-07 13:53
Esmo20002-Apr-07 13:53 
AnswerRe: Live rich text box editing Pin
joon vh.2-Apr-07 23:28
joon vh.2-Apr-07 23:28 
QuestionCan i use GC.Collect() ? Pin
engsrini2-Apr-07 12:40
engsrini2-Apr-07 12:40 
AnswerRe: Can i use GC.Collect() ? Pin
Christian Graus2-Apr-07 12:58
protectorChristian Graus2-Apr-07 12:58 
GeneralRe: Can i use GC.Collect() ? Pin
engsrini2-Apr-07 13:16
engsrini2-Apr-07 13:16 
GeneralRe: Can i use GC.Collect() ? Pin
Christian Graus2-Apr-07 13:21
protectorChristian Graus2-Apr-07 13:21 
GeneralRe: Can i use GC.Collect() ? Pin
engsrini2-Apr-07 13:30
engsrini2-Apr-07 13:30 
GeneralRe: Can i use GC.Collect() ? Pin
Christian Graus2-Apr-07 13:40
protectorChristian Graus2-Apr-07 13:40 
engsrini wrote:
My application is running normal after using it


You are missing the point. Was it running normally before ? Odds are, it's less efficient now, but you can't tell, as it works fine, both ways.

engsrini wrote:
So as per your suggestion i will put the dispose method wherever necessary, is there any other way to avoid memory leak or any tool to notify me the memory leaks?


In C++, you got a leak when you didn't call delete. In C#, you get it if you don't call Dispose. Dispose negates any need to GC.Collect, and lets the GC do it's job. There is nothing else to learn, just call Dispose whenever it's there to call. Bitmaps and videos are particular places where this is crucial.

engsrini wrote:
also is there anyway to idenify the memory used is huge, i suppose to call GC.Collect.


NEVER call GC.Collect, did I forget to mention that ?

As you were not aware of the Dispose method, I have no doubt that GC.Collect has acted as a band aid on a major problem in your code. Call it, and you will have no issues that GC.Collect could solve.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

QuestionRe: Can i use GC.Collect() ? Pin
JacquesDP2-Apr-07 21:11
JacquesDP2-Apr-07 21:11 
AnswerRe: Can i use GC.Collect() ? Pin
Christian Graus2-Apr-07 21:59
protectorChristian Graus2-Apr-07 21:59 

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.