Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

question related to sockets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abubakar - 27 Oct 2006 16:32 GMT
Hi,

I'm working on a sockets app (using all those connect, socket, recv, send
stuff). There is one problem on just one of many pcs i deal with. This pc,
sometimes my app crashes on it, which is pretty usual cuz of application
bugs and I fix them of course. But the problem is that the ports r left open
when the app crashes. I see the list from entering the *netstat -a -o*
command at the command prompt. Its shows that the ports r still in the
listening state. The *-o* switch for this netstat command shows the process
that owns these ports but clearly that process died a long time back and has
no signs in the task manager of windows xp either. Can any one tell me what
can I do to resolve this? Logging off from the pc and signing in again
disappears the port from the netstat command listing but the app is still
unable to listen on these ports. If I restart the computer than the app can
listen on those ports again. And this is happening on 2 of the PCs that I
use, both has windows xp with sp2. Code is being written in native vc++ 2k5.

Regards,

-ab.
Steve Alpert - 30 Oct 2006 18:16 GMT
This isn't the right NG for this question.  Try the networks NG.
The short answer is that the OS doesn't release a socket for up to 4 mins and
hence your reconnect would fail (unless you set a socket option to share).

/steveA

> Hi,
>
[quoted text clipped - 16 lines]
>
> -ab.

Signature

Steve Alpert
my email fgrir.nycreg @ tr.pbz is encrypted with ROT13 (www.rot13.org) and spaces

Abubakar - 02 Nov 2006 10:59 GMT
Hi,
thanks for the reply. I think the problem was related to Dr.Watson exe that
somehow was hooking the crashed app. The netstat command showed the process
that ownd the ports but it was not there in the taskbar. If I terminate the
drwatson app from taskmanager everything worked fine and i could listen on
the ports upon restarting my app..

regards,

-ab.

> This isn't the right NG for this question.  Try the networks NG.
> The short answer is that the OS doesn't release a socket for up to 4 mins
[quoted text clipped - 24 lines]
>>
>> -ab.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.