Re: question related to sockets



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.

"Steve Alpert" <sra@xxxxxxxxxxxxxxxxx> wrote in message
news:eAVvYdE$GHA.1200@xxxxxxxxxxxxxxxxxxxxxxx
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

Abubakar wrote:
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
my email fgrir.nycreg @ tr.pbz is encrypted with ROT13 (www.rot13.org) and
spaces



.



Relevant Pages

  • Re: question related to sockets
    ... The short answer is that the OS doesn't release a socket for up to 4 mins and hence your reconnect would fail. ... 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. ... 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. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: XP Sp2 Firewall issue
    ... Thank you, We are not to sure which Remote Control App we are moving to, at ... to go to but we just want to OPEN all the Ports on the Remote side to allow ... >> from my Subnet and still BLOCK everything else from any other IP ...
    (microsoft.public.windowsxp.security_admin)
  • question related to sockets
    ... I'm working on a sockets app (using all those connect, socket, recv, send ... There is one problem on just one of many pcs i deal with. ... But the problem is that the ports r left open ... The *-o* switch for this netstat command shows the process ...
    (microsoft.public.dotnet.languages.vc)
  • Re: SP2 firewall configuration
    ... I use a program> IS4Yahoo that syncronizes the Yahoo calendar> with various calendars on the PC, ... > Working through the online SP2 help, I enabled the app> first, then try to run netstat to identify the ports the> app is trying to run. ...
    (microsoft.public.windowsxp.network_web)
  • Re: COM Ports in Windows 2000
    ... your app can get "hands on" the real hardware, ... app code has to be changed. ... In windows 98 the com ports worked just fine ... Since we have Windows 2000 and or Windows ...
    (microsoft.public.win2000.hardware)