Benjamin,
I'm trying 'netstat -aop TCP' under these conditions: (I've deleted all
other NIC's on my machine except this one)
1. Static IP:192.168.0.1 SM:255.255.255.0 GW:192.168.0.254
DNS:192.168.0.254 (Cable Unplugged)
2. Static IP:192.168.0.1 SM:255.255.255.0 GW: . . . DNS: . . . (Cable
Unplugged)
3. NIC disabled.
Foreign address is always 0.0.0.0:0 (I assume it displays 0.0.0.0
whenever it hasn't bounded itself.)
Proto Local Address Foreign Address State PID
TCP bluey:2000 0.0.0.0:0 LISTENING 2568
(I've even waited 10mins to make sure there wasn't a screwy DHCP
client (which would really be bizarre since I'm running static now.)
HERE IS THE INTERESTING BIT:
1. I added the following at line 68 of your version of netstat.dpr:
ini.WriteString('netstat','Processed','Confirmed');
2. I then put the newly compiled 'netstat.exe' into 'C:\Program
Files\PalmSource\Palm OS Developer Suite\eclipse' where eclipse.exe is
3. I ran 'netstat.exe' and 'Processed=Confirmed' appeared in the .ini file
4. I removed that line.
5. I ran PODS, tried debugging, then checked netstat.ini and
'Processed=Confirmed' had NOT appeared.
It seems to me that PODS is not even getting to the stage of running
netstat!!!
Thanks heaps!
Scott
Stadin, Benjamin wrote:
You didn't clear your network adapter settings as I said (0.0.0.0 is the
address ipconfig shows for about two minutes while it tries to connect to a
dhcp server without success).
But nevertheless I think the debugger is trying to connect to the address of
the default gateway instead to the localhost on your PC for whatever reason.
I've changed Michael Scherers Delphi app to use a ini file. Put the exe and the
ini under your PODS directory where eclipse.exe is in.
There is now another value, 'Gateway', in the ini file. I've set this to
192.168.0.254 for your net. This is exchanged with 127.0.0.1
You can download it from
http://homepages.fh-giessen.de/~hg12799/netstat-wrapper-v2.zip
I couldn't replicate the problem on my PC, seems this only happens under
certain circumstances. Tell me if this helped you.
Regards
Benjamin Stadin
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/