Click here to Skip to main content
15,898,010 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: DotNet Remoting----------------->Urgent Pin
Roger Alsing28-Mar-04 22:27
Roger Alsing28-Mar-04 22:27 
GeneralManaged DirectX Pin
kobyb26-Mar-04 10:39
kobyb26-Mar-04 10:39 
GeneralRe: Managed DirectX Pin
NFinch1-Apr-04 1:34
NFinch1-Apr-04 1:34 
GeneralArabic Windows CE based application .. Need Help .. Pin
mr_aladddin25-Mar-04 11:50
mr_aladddin25-Mar-04 11:50 
QuestionServiceController class: Credential information? Pin
zeeCoder25-Mar-04 4:48
zeeCoder25-Mar-04 4:48 
AnswerRe: ServiceController class: Credential information? Pin
Roman Rodov29-Mar-04 3:12
Roman Rodov29-Mar-04 3:12 
QuestionHow Do I Stop The Flashing On Control Postbacks? Pin
Member 66660725-Mar-04 4:19
Member 66660725-Mar-04 4:19 
GeneralSafely cleaning up server when Socket is disconnected Pin
Paul Ingles24-Mar-04 23:18
Paul Ingles24-Mar-04 23:18 
I'm building a server based around Asynchronous sockets. Clients connect and are asked to authenticate, messages are exchanged using XML. As soon as the client has been authenticated the socket is associated with an object representing the person.

The server is working fine except when clients disconnect. If the client disconnects without sending a message to the server (i.e. the connection just drops) then the Socket seems to be closed before some of the server's clean up code can be called -- an ObjectDisposedException is thrown. I need a reference to the Socket since the clean up uses various parts of the type to correctly clean up.

Is there any way to ensure that my clean up code is performed before the Socket is disposed? The Dispose method is intended to be used for releasing resources, which isn't strictly the case and it would also require the derived Socket type to essentially be aware of where it's being used.

All suggestions are very much appreciated,
Paul

--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"

MS Messenger: paul@oobaloo.co.uk
Download my PGP public key

QuestionHow can I return the method that is called when an event is raised ? Pin
Necati Arslan24-Mar-04 22:20
Necati Arslan24-Mar-04 22:20 
AnswerRe: How can I return the method that is called when an event is raised ? Pin
Michael Flanakin25-Mar-04 18:29
Michael Flanakin25-Mar-04 18:29 
GeneralRe: How can I return the method that is called when an event is raised ? Pin
Necati Arslan26-Mar-04 4:06
Necati Arslan26-Mar-04 4:06 
GeneralRe: How can I return the method that is called when an event is raised ? Pin
Michael Flanakin26-Mar-04 4:19
Michael Flanakin26-Mar-04 4:19 
Generalcan't save .pdb to web server Pin
peterzorbas24-Mar-04 22:05
peterzorbas24-Mar-04 22:05 
GeneralFindAll with system.directoryservice Pin
Cammie Watson24-Mar-04 5:58
Cammie Watson24-Mar-04 5:58 
GeneralRemote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 2:45
Gunner_Sr24-Mar-04 2:45 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 3:40
Roman Rodov24-Mar-04 3:40 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Gunner_Sr24-Mar-04 4:11
Gunner_Sr24-Mar-04 4:11 
GeneralRe: Remote Access to the Registry with Impersonation Pin
Roman Rodov24-Mar-04 12:55
Roman Rodov24-Mar-04 12:55 
Generalunload an assembly Pin
dzsigit24-Mar-04 2:11
dzsigit24-Mar-04 2:11 
GeneralRe: unload an assembly Pin
Roman Rodov24-Mar-04 3:25
Roman Rodov24-Mar-04 3:25 
GeneralWindow Visibility Pin
ShadowLordXP23-Mar-04 17:15
ShadowLordXP23-Mar-04 17:15 
GeneralRe: Window Visibility Pin
John Kuhn23-Mar-04 19:40
John Kuhn23-Mar-04 19:40 
GeneralRe: Window Visibility Pin
T Manjaly24-Mar-04 12:07
T Manjaly24-Mar-04 12:07 
GeneralRe: Window Visibility Pin
John Kuhn24-Mar-04 15:23
John Kuhn24-Mar-04 15:23 
Generalapplications for nt4, 98, me Pin
hazzem elrefai22-Mar-04 22:52
hazzem elrefai22-Mar-04 22:52 

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.