Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Can i use GC.Collect() ? Pin
JacquesDP2-Apr-07 22:03
JacquesDP2-Apr-07 22:03 
GeneralRe: Can i use GC.Collect() ? Pin
Scott Dorman2-Apr-07 14:44
professionalScott Dorman2-Apr-07 14:44 
QuestionRe: Can i use GC.Collect() ? Pin
Martin#2-Apr-07 21:24
Martin#2-Apr-07 21:24 
AnswerRe: Can i use GC.Collect() ? Pin
Scott Dorman3-Apr-07 1:05
professionalScott Dorman3-Apr-07 1:05 
GeneralRe: Can i use GC.Collect() ? Pin
Martin#3-Apr-07 4:05
Martin#3-Apr-07 4:05 
GeneralRe: Can i use GC.Collect() ? Pin
Martin#2-Apr-07 20:28
Martin#2-Apr-07 20:28 
Hello,

Apart from the Disposing method (which off course is a "must") you have to make sure that all your delagates are disconnected from your objects.
For example your Usercontrol or Form is connected with a global class over an event, and you close the Form (which calls Dispose as well) or Dispose the Usercontrol manually, you have to disconnect the event in your Dispose method.

The only reason when I use GC.Collect() is when I'm doing memory profiling before a snapshot is done.
Using a memory profiler is what I would also recomend to you, if you whant to be sure that you have no memory leaks.

All the best,

Martin
QuestionSetting 'OnClick' for dynamic button in Code behind Pin
Chris McGlothen2-Apr-07 11:59
Chris McGlothen2-Apr-07 11:59 
QuestionScheduling (user input time = system time Pin
orly00132-Apr-07 11:37
orly00132-Apr-07 11:37 
AnswerRe: Scheduling (user input time = system time Pin
Judah Gabriel Himango2-Apr-07 13:06
sponsorJudah Gabriel Himango2-Apr-07 13:06 
AnswerRe: Scheduling (user input time = system time Pin
Leslie Sanford2-Apr-07 16:40
Leslie Sanford2-Apr-07 16:40 
QuestionClosing ComboBox DropDownList Programmatically Pin
freshonlineMax2-Apr-07 10:49
freshonlineMax2-Apr-07 10:49 
AnswerRe: Closing ComboBox DropDownList Programmatically Pin
Judah Gabriel Himango2-Apr-07 13:04
sponsorJudah Gabriel Himango2-Apr-07 13:04 
QuestionShowDialogue Pin
AAKAra2-Apr-07 10:32
AAKAra2-Apr-07 10:32 
AnswerRe: ShowDialogue Pin
Christian Graus2-Apr-07 12:26
protectorChristian Graus2-Apr-07 12:26 
GeneralRe: ShowDialogue Pin
AAKAra3-Apr-07 7:05
AAKAra3-Apr-07 7:05 
GeneralRe: ShowDialogue Pin
AAKAra3-Apr-07 7:25
AAKAra3-Apr-07 7:25 
QuestionHow to get to DVD drive without getting access to CD drive? Pin
Khoramdin2-Apr-07 10:16
Khoramdin2-Apr-07 10:16 
Questioncomputer name to IP address Pin
marwan_siala2-Apr-07 9:52
marwan_siala2-Apr-07 9:52 
AnswerRe: computer name to IP address Pin
stancrm2-Apr-07 19:44
stancrm2-Apr-07 19:44 
QuestionOpening UNKNOWN filename? Pin
Goalie352-Apr-07 9:18
Goalie352-Apr-07 9:18 
AnswerRe: Opening UNKNOWN filename? Pin
Christian Graus2-Apr-07 10:01
protectorChristian Graus2-Apr-07 10:01 
AnswerRe: Opening UNKNOWN filename? Pin
engsrini2-Apr-07 13:20
engsrini2-Apr-07 13:20 
QuestionPulling info from arrays Pin
JMOdom2-Apr-07 8:57
JMOdom2-Apr-07 8:57 

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.