Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Delphi > Re: Falling Asl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 1091 of 1138
Post > Topic >>

Re: Falling Asleep

by "Brian" <not@[EMAIL PROTECTED] > Nov 27, 2006 at 02:07 PM

>> 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
 




 4 Posts in Topic:
Falling Asleep
"Brian" <not  2006-11-21 17:18:06 
Re: Falling Asleep
Rob Kennedy <me3@[EMAI  2006-11-21 12:43:49 
Re: Falling Asleep
Jamie <jamie_ka1lpa_no  2006-11-21 19:34:36 
Re: Falling Asleep
"Brian" <not  2006-11-27 14:07:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:22:03 CST 2008.