Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why normal processing slow down my system
Message
De
27/12/2001 23:50:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00598634
Message ID:
00598670
Vues:
19
Hi,

Sorry, I miss this out, my application will disable the timer first
and then process the data file, before enabling it back again.

I am using vfp5a. Could you kindly assist me on some example of
using Assign method for my case.

>Hi again,
>
>Do you really need to use timer? Try to set this.enabled to false in the timer.timer event and back to true at the end of this event. Also can you do it without timer at all? It would be better to use SomeProperty_Assign method instead to fire your procedure...
>
>>Hi,
>>
>>Actually my application just on detection of some file, will unzip the zip
>>file and start posting (seeking, updating and deleting) like the pseudocode
>>below. Whenever it process data, the whole system seem to halt, then fine
>>once the processing is over.
>>
>>Timer_Event() that trigger event every 1 minute.
>>
>> If file exist(zipfile)
>> Do ProcessData
>> endif
>>
>>End Timer_Event
>>
>>
>>Function ProcessData
>>
>> do while file exist(zipfile)
>>
>> if file(zipfile)
>>
>> unzip(zipfile)
>> delete zipfile <--- zip file contain files like file01001,file01002
>> if file(file01xxx) <---- if file01001, file01002
>> process file(file01xxx) to database
>> delete file(file01xxx) after processing
>> endif
>>
>> endif
>>
>> loop
>>
>>endfunc
>>
>>
>>>Without looking at the code or knowing some of your configuration specifics, we can only shoot in the dark...
>>>
>>>>Hi,
>>>>
>>>>I observed that my application when processing data like seeking and
>>>>updating or updating will 'halt' my whole system as seem on the Win9x
>>>>system monitor program, it is actually using up all my processor time
>>>>and other program seem to halt too until my application completed
>>>>the processing. Hence, when my application is running 24x7 day,
>>>>it will cause my system timing to slow down by 15 - 30 minutes.
>>>>
>>>>What is wrong, why normal processing of data will had this effect.
>>>>Is there any way to improve this problem.
>>>>
>>>>
>>>>
>>>>Thank you
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform