Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dispose groupbox Pin
Ronny Portier15-Apr-12 5:21
Ronny Portier15-Apr-12 5:21 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 5:44
sitebuilderLuc Pattyn15-Apr-12 5:44 
GeneralRe: Dispose groupbox Pin
phil.o15-Apr-12 5:32
professionalphil.o15-Apr-12 5:32 
AnswerRe: Dispose groupbox Pin
DaveyM6915-Apr-12 5:49
professionalDaveyM6915-Apr-12 5:49 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:05
Abhinav S15-Apr-12 6:05 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:18
sitebuilderLuc Pattyn15-Apr-12 6:18 
AnswerRe: Dispose groupbox Pin
Abhinav S15-Apr-12 6:51
Abhinav S15-Apr-12 6:51 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 6:58
sitebuilderLuc Pattyn15-Apr-12 6:58 
Abhinav S wrote:
the GC is non-determinstic

correct

Abhinav S wrote:
this article - http://www.devx.com/dotnet/Article/33167/0/page/3[^]

Haven't read that, and am not going to.


Abhinav S wrote:
dispose does not guarantee that memory will be freed

correct.
Dispose is NOT about freeing the memory that holds the object; it is about other things the object may be holding on to. Such as unmanaged system objects (e.g. device contexts), unmanaged memory blocks, etc.

Conclusions:
- Dispose and GC are no alternatives, they complement each other.
- let the GC do its work (and don't interfere with it).
- call Dispose() for objects that have such method.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Dispose groupbox Pin
Abhinav S15-Apr-12 7:23
Abhinav S15-Apr-12 7:23 
AnswerRe: Dispose groupbox Pin
V.15-Apr-12 21:56
professionalV.15-Apr-12 21:56 
AnswerRe: Dispose groupbox Pin
Pete O'Hanlon15-Apr-12 23:45
mvePete O'Hanlon15-Apr-12 23:45 
Questionproblem in restoring mysql database Pin
altafmohd14-Apr-12 21:35
altafmohd14-Apr-12 21:35 
AnswerRe: problem in restoring mysql database Pin
OriginalGriff14-Apr-12 22:30
mveOriginalGriff14-Apr-12 22:30 
GeneralRe: problem in restoring mysql database Pin
altafmohd14-Apr-12 22:41
altafmohd14-Apr-12 22:41 
QuestionRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 0:35
professionalEddy Vluggen15-Apr-12 0:35 
AnswerRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 0:46
altafmohd15-Apr-12 0:46 
GeneralRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 1:03
professionalEddy Vluggen15-Apr-12 1:03 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 1:19
altafmohd15-Apr-12 1:19 
AnswerRe: problem in restoring mysql database Pin
Eddy Vluggen15-Apr-12 1:27
professionalEddy Vluggen15-Apr-12 1:27 
AnswerRe: problem in restoring mysql database Pin
Luc Pattyn15-Apr-12 3:19
sitebuilderLuc Pattyn15-Apr-12 3:19 
GeneralRe: problem in restoring mysql database Pin
altafmohd15-Apr-12 5:04
altafmohd15-Apr-12 5:04 
AnswerRe: problem in restoring mysql database Pin
Bernhard Hiller15-Apr-12 21:18
Bernhard Hiller15-Apr-12 21:18 
QuestionHow well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 10:11
professionalRavi Bhavnani14-Apr-12 10:11 
AnswerRe: How well do you know your TryParse()? Pin
Alan N14-Apr-12 10:56
Alan N14-Apr-12 10:56 
GeneralRe: How well do you know your TryParse()? Pin
Ravi Bhavnani14-Apr-12 11:15
professionalRavi Bhavnani14-Apr-12 11:15 

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.