Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp timer pitfalls?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01250752
Message ID:
01250757
Views:
12
>You should disable timer at the beginnig of the processing and enable it afterwards.

I don't think that I fully understand what you mean. I have some code that if these files are available (all of them ) that I stop (disable) the timer completely and then do the processing (copying the files to our directory and running some conversion programs). But the error was caused (I think) before the processing.

Or do you mean that a "set default to (this.cDownloadDirectory)" can take more than a minute which causes this? In other words why should I disable the timer.. i'm sorry for my ingnorance


>>
>>I have subclassed the vfp timer that looks every minute in a directory for 10 files showing up, after that the program has to run a batch program. I have tried this program last friday and usually these files show up saturday. When coming to the office monday I noticed that the program stucked with an error: invalid path on the following syntax:
>>
>>
>>PROCEDURE TIMER()
>>
>>set default to (this.cDownloadDirectory)
>>
>>....
>>
>>ENDPROC
>>
>>
>>
>>So I suspended it and resumed the program again. And to my suprise it continued w/o any problems. I know it is really vague, but is there something with the timer that I have to watch out for. Or are there any better options to achieve what I want.
>>
>>Thanks beforehand
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform