A
Abubakar
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.
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.