Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : 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: | "Jamie Dale" (j.da..@turboz.net) |
| Date: | Fri, 2 Jun 2006 12:29:58 |
>> Basically I wrote a program in D6. On my main machine it works
>> perfectly. On the machine I installed D2005, hell breaks loose.
>
> Which says absolutely nothing about the ACTUAL PROBLEMS you are having
> with
> it.
Well it's a dynamic DNS updater. It checks the curent IP address (using an
external website) and then if it detects a change, it updates the host of
the domain name. On my machine the program works perfectly - As a normal
application AND as a system service (Using the uCiaService component I found
listed on Borlands website to allow it as a service AND normal application).
When I run it on the other machine, it downloads the xml file of the hosts
in my account, and then stops. It doesn't check the IP address anymore
(despite the timer being enabled). It doesn't run through the list of hosts
and compare IPs. It doesn't even maintain the log properly either. With
regards to the GUI thing, I'm aware of that however I set the program as
interactive as I wanted it to have a GUI interface so that I could update it
etc. Thing is, I needed it to run whether I was logged onto the machine or
not so a system service seemed like the logical answer.
Oddly enough I have another service which is installed too: Talker.exe. It
basically uses a TCP server and Microsoft speech engine. When you connect
via TCP it will speak whatever text you send to it. Guess what?..... Yep,
also not working correctly (Though if I connect to the machine through
remote desktop and run it as a .exe it works fine but if I run it as a .exe
while infront of that machine it has query string errors - why would remote
desktop affect this?)
> Which machine did you compile it on? Which compiler? Did you try
> compiling
> it on the working machine and then installing it on the offending machine?
> The only way installing D2005 can effect the way your existing compiled
> service executable runs is if the service was compiled to use runtime
> packages, and at run-time the service is picking up the D2005 runtime
> packages instead of the D6 ones.
Compiled both on my main PC with D6 installed using D6 as the compiler. Yes
I tried compiling Talker.exe on that machine: Error when using
"DirectSS1.Speak(Edit1.Text);". It said it "A syntax error occurred trying
to evaluate a query string".
I connected again via Remote Desktop, compiled and it worked perfectly.
Unfortunately however, my DNS updater does not.
My delphi is configured to compile all required packages into the main .exe.
Therefore it is not dependant on anything other than M$'s Agent (Yes it's
installed on that machine).
> A service is not supposed to have a GUI to begin with.
But if you use uCiaService component and set the service as interactive it
can ;) - It's very groovy. Makes what would normally be a very hard task
very easy!.... unless your using my #2 machine :*(
> The D2005 trial version is downloadable on Borland's main website. Click
> on
> the "Free Trial" link on the Delphi IDE page.
>
Gotta confess I have not yet seen that however I'll take another look - Do
they do D2006 aswell? - I'd really like to give that a chance instead of
downloading 2005 again..
Thanks
Jamie