Click here to Skip to main content
15,908,775 members
Home / Discussions / C#
   

C#

 
AnswerRe: Socket Connection Shutdown and Close Pin
Colin Angus Mackay15-Apr-09 12:12
Colin Angus Mackay15-Apr-09 12:12 
You should implement the IDisposable interface and call Dispose from the Finalizer. The code you currently have in the Finalizer should be moved to the Dispose method.

The Dispose method should detect if it is already disposed and not do so again. I suspect that the exception you got was because the Sender was already disposed, but you still had a reference to it.


GeneralRe: Socket Connection Shutdown and Close Pin
kikeman16-Apr-09 4:45
kikeman16-Apr-09 4:45 
GeneralRe: Socket Connection Shutdown and Close Pin
Colin Angus Mackay16-Apr-09 5:05
Colin Angus Mackay16-Apr-09 5:05 
GeneralRe: Socket Connection Shutdown and Close Pin
kikeman16-Apr-09 5:39
kikeman16-Apr-09 5:39 
GeneralRe: Socket Connection Shutdown and Close Pin
Colin Angus Mackay16-Apr-09 5:48
Colin Angus Mackay16-Apr-09 5:48 
AnswerRe: Socket Connection Shutdown and Close Pin
kikeman16-Apr-09 5:55
kikeman16-Apr-09 5:55 
QuestionTask Scheduler Pin
BlitzPackage15-Apr-09 11:40
BlitzPackage15-Apr-09 11:40 
AnswerRe: Task Scheduler Pin
Pete O'Hanlon15-Apr-09 11:45
mvePete O'Hanlon15-Apr-09 11:45 
GeneralRe: Task Scheduler Pin
BlitzPackage15-Apr-09 15:59
BlitzPackage15-Apr-09 15:59 
AnswerRe: Task Scheduler Pin
Rolando CC15-Apr-09 12:52
professionalRolando CC15-Apr-09 12:52 
GeneralRe: Task Scheduler Pin
BlitzPackage15-Apr-09 15:58
BlitzPackage15-Apr-09 15:58 
AnswerRe: Task Scheduler Pin
Giorgi Dalakishvili15-Apr-09 19:45
mentorGiorgi Dalakishvili15-Apr-09 19:45 
QuestionVS2008 Startup, Environment, Options Dialog Box missing Pin
Neville Franks15-Apr-09 10:51
Neville Franks15-Apr-09 10:51 
AnswerRe: VS2008 Startup, Environment, Options Dialog Box missing Pin
Neville Franks15-Apr-09 11:00
Neville Franks15-Apr-09 11:00 
JokeWhat are trees doing in your pants? Pin
Naruki15-Apr-09 15:18
Naruki15-Apr-09 15:18 
GeneralRe: What are trees doing in your pants? Pin
Neville Franks15-Apr-09 16:26
Neville Franks15-Apr-09 16:26 
JokeRe: What are trees doing in your pants? Pin
Naruki15-Apr-09 16:54
Naruki15-Apr-09 16:54 
GeneralRe: What are trees doing in your pants? Pin
Neville Franks15-Apr-09 18:00
Neville Franks15-Apr-09 18:00 
QuestionProgress while reading a file Pin
nike_arh15-Apr-09 10:38
nike_arh15-Apr-09 10:38 
AnswerRe: Progress while reading a file Pin
amtadhani15-Apr-09 10:45
amtadhani15-Apr-09 10:45 
GeneralRe: Progress while reading a file Pin
nike_arh15-Apr-09 10:53
nike_arh15-Apr-09 10:53 
AnswerRe: Progress while reading a file Pin
Luc Pattyn15-Apr-09 10:55
sitebuilderLuc Pattyn15-Apr-09 10:55 
GeneralRe: Progress while reading a file Pin
nike_arh15-Apr-09 11:14
nike_arh15-Apr-09 11:14 
GeneralRe: Progress while reading a file Pin
Luc Pattyn15-Apr-09 11:19
sitebuilderLuc Pattyn15-Apr-09 11:19 
QuestionList view question Pin
al3xutzu0015-Apr-09 10:03
al3xutzu0015-Apr-09 10:03 

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.