Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Delphi 2005 Personal and Indy 10.0.75: Indy don't work!!!

www.cryer.info
Managed Newsgroup Archive

Re: Delphi 2005 Personal and Indy 10.0.75: Indy don't work!!!

Subject:Re: Delphi 2005 Personal and Indy 10.0.75: Indy don't work!!!
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Fri, 2 Jun 2006 16:14:51

"Jamie Dale" <j.dale@turboz.net> wrote in message
news:4480b81a@newsgroups.borland.com...

> I basically compare the 2 IP's using the If IP <> IP2 then.......

That means nothing if the two values are not always accurate.  If your code
is detecting changes every 5 seconds, then at least one of those values is
not accurate.  That suggests a bug in the way you are obtaining the IPs in
the first place before comparing them.  Please show your actual code.

> Obviously the 2 IP's should be the same!

Not if you are obtaining incorrectly to begin with.

> It only happens when run as a service

Again, please show your actual code.  Are you taking multiple network
adapters into account?  Perhaps the OS is returning the IP list in a
different order each time you query for the current IP, such that you are
actually comparing the IPs from different adapters each time.

> so you imagine how hard it is to debug and catch whats going on

It is even harder to debug when you don't show what youare actually doing to
begin with.  These are programming support groups, afterall.  A fresh pair
of eyes can sometimes find bugs that have been staring you in the face for
hours/days at a time.

> Thats exactly what I thought to start off with too. But the problem is (as
> already mentioned) it works fine on this machine. I then copy and paste
> the working version onto the C: drive of the 2nd PC and it suddenly
> buggered. I honestly do not know what is affecting it but it's really
> rubbing me up the wrong way...

Then please show the actual code.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive