Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why normal processing slow down my system
Message
 
 
To
27/12/2001 21:50:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00598634
Message ID:
00598652
Views:
19
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
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform