Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bad Icon Pin
Mark Churchill14-Aug-08 15:41
Mark Churchill14-Aug-08 15:41 
GeneralRe: Bad Icon Pin
Silvyster14-Aug-08 15:46
Silvyster14-Aug-08 15:46 
GeneralRe: Bad Icon Pin
Mark Churchill14-Aug-08 15:56
Mark Churchill14-Aug-08 15:56 
GeneralRe: Bad Icon Pin
Silvyster14-Aug-08 16:05
Silvyster14-Aug-08 16:05 
GeneralRe: Bad Icon Pin
Mark Churchill14-Aug-08 16:23
Mark Churchill14-Aug-08 16:23 
QuestionWindows Appearance settings mess with Window Sizes Pin
JKrigelman14-Aug-08 14:27
JKrigelman14-Aug-08 14:27 
AnswerRe: Windows Appearance settings mess with Window Sizes Pin
JKrigelman15-Aug-08 6:20
JKrigelman15-Aug-08 6:20 
QuestionAutomatically cleanup of "managed resources" when object dies Pin
invictus314-Aug-08 13:45
invictus314-Aug-08 13:45 
Hi
I have an object where both files (using StreamReader/StreamWriter) and sockets (using TcpClient) are opened in the constructor. Now, I want to make sure these are cleaned up properly when the object dies/disapears out of scope, etc. My background is from C++ so I am having quite a few problems with controlling this. I tried throwing a few close() executions in the destructor, but that apparently didn't do the job. Any ideas? What is the "correct" way of solving this problem if I want all resources to be released when the object becomes irrelevant?
AnswerRe: Automatically cleanup of "managed resources" when object dies Pin
Mark Churchill14-Aug-08 14:16
Mark Churchill14-Aug-08 14:16 
AnswerRe: Automatically cleanup of "managed resources" when object dies Pin
AhsanS14-Aug-08 22:28
AhsanS14-Aug-08 22:28 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
invictus315-Aug-08 0:39
invictus315-Aug-08 0:39 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
AhsanS15-Aug-08 1:02
AhsanS15-Aug-08 1:02 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
invictus315-Aug-08 1:15
invictus315-Aug-08 1:15 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
AhsanS15-Aug-08 1:43
AhsanS15-Aug-08 1:43 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
invictus316-Aug-08 3:10
invictus316-Aug-08 3:10 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
Scott Dorman16-Aug-08 5:16
professionalScott Dorman16-Aug-08 5:16 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
invictus316-Aug-08 6:20
invictus316-Aug-08 6:20 
GeneralRe: Automatically cleanup of "managed resources" when object dies Pin
Scott Dorman16-Aug-08 7:04
professionalScott Dorman16-Aug-08 7:04 
AnswerRe: Automatically cleanup of "managed resources" when object dies Pin
invictus320-Aug-08 11:17
invictus320-Aug-08 11:17 
QuestionGoogle Contacts API fails with 403 Forbidden Always Pin
Vasudevan Deepak Kumar14-Aug-08 8:32
Vasudevan Deepak Kumar14-Aug-08 8:32 
QuestionStatic objects and terminal server Pin
fredsparkle14-Aug-08 6:45
fredsparkle14-Aug-08 6:45 
AnswerRe: Static objects and terminal server Pin
Manas Bhardwaj14-Aug-08 6:47
professionalManas Bhardwaj14-Aug-08 6:47 
GeneralRe: Static objects and terminal server Pin
fredsparkle14-Aug-08 6:55
fredsparkle14-Aug-08 6:55 
AnswerRe: Static objects and terminal server Pin
S. Senthil Kumar14-Aug-08 21:03
S. Senthil Kumar14-Aug-08 21:03 
QuestionMoving or deleting files failing Pin
Ekjon14-Aug-08 6:37
Ekjon14-Aug-08 6:37 

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.