>> Hi all
>>
>> I have a strange problem, and wonder if anybody has any advise to what
>> this
>> may be.
>>
>> I have 2 apps, both these apps are run on the same system, and although
>> they
>> do different tasks they are very similar in what they do, just
different
>> times of the hour, which is
>>
>> A timer runs every 30 seconds and checks various directories for txt
>> files,
>> if it finds one then read it in via a EOF(aTextFile), check the file
>> info, if
>> OK create another txt file which is a load of SQL statements, zip this
>> file up using a
>> ZIP component I have, FTP the zip file to a server using a Indy idFTP,
>> call a
>> PHPserver script via a Indy idHTTP which unzips and processes the file.
>>
>> For some strand reason the apps go to sleep, if you just leave the
system
>> running and go out, when you come back it has not done anything, but if
>> you just
>> click on them they wake up?
>>
>> Each function in both programs has Application.ProcessMessages; to make
>> sure
>> its doing what it should, but still falls asleep, any ideas why?
>>
>> Brian
>>
>>
> better check your power management functions in windows, especially if
> you're on a laptop etc..
> btw, Windows broadcast WM_Power... messages...., i think you can do
> something then.
>
> UNless, you're doing something hokey in the onIdle event?
> if memory serves, i remember Indy using some hook like that ?
>
After a load more hours I found the problem, for some strange reason
the program didn't like using a Mapped Network drive, changed it
to a direct path and has been working fine
Brian


|