Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


An established connection was aborted...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Thu Nov 27, 2008 4:28 pm    Post subject: An established connection was aborted... Reply with quote

I am creating a socket server in C# and every time I close the client, the server gives that message. How do I stop it from happening?
_________________
Back to top
View user's profile Send private message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Thu Nov 27, 2008 4:37 pm    Post subject: Re: An established connection was aborted... Reply with quote

Drkgodz wrote:
I am creating a socket server in C# and every time I close the client, the server gives that message. How do I stop it from happening?



Check these urls

http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/17e3f2c9-c3f8-4531-b251-11fafe46ec14/

http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic4464.aspx


Why not google?

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Thu Nov 27, 2008 4:39 pm    Post subject: Reply with quote

Sorry, I got the answer.
_________________
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Nov 27, 2008 11:37 pm    Post subject: Reply with quote

try-catch?

Code:

try
{
    //client stuff
}
catch( SocketCloseException sce ) //or whatever
{
    MessageBox.Show("Server closed. Closing now.");
    Application.Exit(0);
    return;
}
catch( Exception e )
{
    MessageBox.Show("Some other error occured! Closing now.");
    Application.Exit(1);
    return;
}

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites