Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer enabled
Message
From
15/06/2012 17:55:35
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01545860
Message ID:
01546130
Views:
70
The last paragraph is confirming that the bugs of the earlier version are squashed - good to know.

A few years back we had Lauren Clarke present at our UG. He works with West Wind, and he wanted to optimize his code. He developed a framework that could time various code sections using the high resolution timer, and display the results in a Gantt-type chart. I believe his timer interface was based on this: http://fox.wikis.com/wc.dll?Wiki~csnwHighResTimer

>These are the texts and there are no longer bug notes.
>
>The Timer Control is a cool little device for creating events that fire at predetermined intervals. This is a great replacement for DO...WHILE and INKEY() loops, which chew up a whole bunch of processor time while counting milliseconds. The timer control is flaky and unpredictable in VFP 3.x. The Fox team has done a great job of bringing this one under control in VFP 5 and later versions.
>
>The timer is a control with no visible presence at runtime, but fires its Timer event at a regular, defined Interval. If you messed with this control in VFP 3 and got frustrated, give it another shot. We have to give Microsoft credit where credit is due, and they did a great job with Timer. In the original version of this book, which covered Visual FoxPro 3.0, Timer got credit for a lot of bugs—even the dreaded double-bug icon—but in later versions, it appears vastly improved.
>
>Timers fire when the menu is dropped down. They didn't in VFP 3.0. Timers fire in toolbars. Timers fire when a form is being dragged around. Timers fire when another application window is resized, or when Fox's window is resized. Timers fire when your application displays a message box. Awesome!

>
>>The last time I used timers extensively and required reliability was in the VFP5/6 days. The HackFox I have is 3, which lists a lot of bugs.
>>
>>Does HackFox 7 list any bugs that still exist, or explicitly say that former bugs have been fixed?
>>
>>>In my HackFox7 they write:
>>>
>>>The timer is a control with no visible presence at runtime, but fires its Timer event at a regular, defined Interval. If you messed with this control in VFP 3 and got frustrated, give it another shot. We have to give Microsoft credit where credit is due, and they did a great job with Timer. In the original version of this book, which covered Visual FoxPro 3.0, Timer got credit for a lot of bugs—even the dreaded double-bug icon—but in later versions, it appears vastly improved.
>>>
>>>
>>>>The HackFox books list a number of circumstances where the VFP timer either misbehaves, or doesn't fire at all. IIRC API approaches avoid most of those problems.
>>>>
>>>>>Is it better?
>>>>>
>>>>>>Below is an alternative to using the VFP timer -- it uses the Win API with all VFP code:
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform