Click here to Skip to main content
15,914,795 members
Home / Discussions / C#
   

C#

 
QuestionOpening child forms without focus Pin
Hitesh Salian19-Oct-05 4:48
Hitesh Salian19-Oct-05 4:48 
AnswerRe: Opening child forms without focus Pin
kmuthuk9-Jan-07 9:06
kmuthuk9-Jan-07 9:06 
QuestionHow to determine hard drives? Pin
wasife19-Oct-05 4:25
wasife19-Oct-05 4:25 
AnswerRe: How to determine hard drives? Pin
Judah Gabriel Himango19-Oct-05 5:22
sponsorJudah Gabriel Himango19-Oct-05 5:22 
AnswerRe: How to determine hard drives? Pin
leppie19-Oct-05 5:55
leppie19-Oct-05 5:55 
QuestionOne finalize question Pin
zhangxinghai19-Oct-05 3:32
zhangxinghai19-Oct-05 3:32 
AnswerRe: One finalize question Pin
Rob Philpott19-Oct-05 7:16
Rob Philpott19-Oct-05 7:16 
GeneralRe: One finalize question Pin
Dan Neely19-Oct-05 7:48
Dan Neely19-Oct-05 7:48 
Rob Philpott wrote:
Are you assuming that objects are deleted in Finalize in a similar manner to the general practice in a C++ destructor? This is not the case. My understanding is that Finalize is provided more to free up CLR resources than referenced objects.


You've got this part backwards. Finalize() is to cleanup non managed (and generally scarce) resources (ie handles, files) that the GC can't. If you've implemented a finalizer you should also should implement IDisposable, and dispose the object as soon as you're done (put the cleanup code in both) to free the nonmanaged resources immediately rather than waiting for the GC. The reason for doing the cleanup in both places is cya in case you or annother developer forget to dispose the object.
Questionquestion about string "\" sign Pin
Green Fuze19-Oct-05 3:25
Green Fuze19-Oct-05 3:25 
AnswerRe: question about string "\" sign Pin
User 665819-Oct-05 4:07
User 665819-Oct-05 4:07 
GeneralRe: question about string "\" sign Pin
Daniel Grunwald19-Oct-05 6:26
Daniel Grunwald19-Oct-05 6:26 
GeneralRe: question about string "\" sign Pin
User 665819-Oct-05 6:36
User 665819-Oct-05 6:36 
AnswerRe: question about string "\" sign Pin
Michael P Butler19-Oct-05 10:08
Michael P Butler19-Oct-05 10:08 
QuestionSerial Ports in C# Pin
Jethro6319-Oct-05 2:49
Jethro6319-Oct-05 2:49 
AnswerRe: Serial Ports in C# Pin
Gavin Jeffrey19-Oct-05 4:09
Gavin Jeffrey19-Oct-05 4:09 
GeneralRe: Serial Ports in C# Pin
Jethro6319-Oct-05 6:58
Jethro6319-Oct-05 6:58 
Questionwhat does it need the vector cryptic.IV Pin
Sasuko19-Oct-05 1:10
Sasuko19-Oct-05 1:10 
AnswerRe: what does it need the vector cryptic.IV Pin
leppie19-Oct-05 1:42
leppie19-Oct-05 1:42 
AnswerRe: what does it need the vector cryptic.IV Pin
Doctor Nick19-Oct-05 10:20
Doctor Nick19-Oct-05 10:20 
QuestionWindows Service Urgent!!! Pin
Talktorajeev18-Oct-05 23:34
Talktorajeev18-Oct-05 23:34 
AnswerRe: Windows Service Urgent!!! Pin
leppie19-Oct-05 0:02
leppie19-Oct-05 0:02 
GeneralRe: Windows Service Urgent!!! Pin
Talktorajeev19-Oct-05 0:18
Talktorajeev19-Oct-05 0:18 
GeneralRe: Windows Service Urgent!!! Pin
leppie19-Oct-05 1:38
leppie19-Oct-05 1:38 
GeneralRe: Windows Service Urgent!!! Pin
Talktorajeev19-Oct-05 2:11
Talktorajeev19-Oct-05 2:11 
AnswerRe: Windows Service Urgent!!! Pin
leppie19-Oct-05 2:41
leppie19-Oct-05 2:41 

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.