-
Well this is the senerio..
I have three applications working together.
1) prints pdf files
2) FTP transfer of files from one server to this server
3) monitors if ADOBE is running (ie while printing process is going on sometimes Adobe displays a modal dialog if file is bad)In that case this application kills adobe
All the applications are to run unattended and in endless loops
The printing app consumes 99% CPU and for some reason and it terminates once in one - two days
Please guide what would be a good way to handle the situation
Is there a way to optimize the performance?
Or if we could check that cpu usage is maximum then put rest of the applications to DoEvents.
-
Did you make the app that prints pdf files?
-
Place the loop code inside timer events, adjust by having smaller loops in the timers, or using Settimer api and to create more frequent events.