SBendBuckeye
Programmer
Hello All,
I inherited a VB 6.0 app with several different timers on the main form. Users complain of inconsistent updates but I have not been able to reproduce the problem.
My background is more VBA than VB, so please bear with me. Would I be better off spawning some of the timers off as separate exes so they ran on their own thread? Obviously this would only work if the timers could run asyncronously.
I have already done the above with an enhancement that reacts to Outlook email messages. It runs on its own timer and processes incoming messages every 10 seconds. The main app kicks if off during load processing and then uses the PostMessage API to tell it to shut itself down when it is unloading.
For purposes of our discussion, let's say the main app has 4 timers, 1 firing every 6 seconds, 1 every 30 seconds, 1 every 10 seconds and 1 every 15 seconds and all of them can process asyncronously. What would be the advantages and disadvantages of splitting them into separate exes and having the main app kick them off and then shut them down as opposed to handling them all all itself.
Thanks for any ideas and/or suggestions!
Have a great day!
j2consulting@yahoo.com
I inherited a VB 6.0 app with several different timers on the main form. Users complain of inconsistent updates but I have not been able to reproduce the problem.
My background is more VBA than VB, so please bear with me. Would I be better off spawning some of the timers off as separate exes so they ran on their own thread? Obviously this would only work if the timers could run asyncronously.
I have already done the above with an enhancement that reacts to Outlook email messages. It runs on its own timer and processes incoming messages every 10 seconds. The main app kicks if off during load processing and then uses the PostMessage API to tell it to shut itself down when it is unloading.
For purposes of our discussion, let's say the main app has 4 timers, 1 firing every 6 seconds, 1 every 30 seconds, 1 every 10 seconds and 1 every 15 seconds and all of them can process asyncronously. What would be the advantages and disadvantages of splitting them into separate exes and having the main app kick them off and then shut them down as opposed to handling them all all itself.
Thanks for any ideas and/or suggestions!
Have a great day!
j2consulting@yahoo.com