Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Letting NT respond to events while a VFP6 EXE is running
Message
From
23/02/1999 11:13:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00190465
Message ID:
00190468
Views:
15
>I have a communications EXE running on WinNT 4 Workstation. It is written in VFP6 and uses MSCOMM to read a serial port in a loop 24 hours per day. Currently the EXE is hogging the processor time, how allow NT to respond to user events without slowing down the EXE too much.
>
>I thought I saw a solution to this posted within the last 2 months, but I can't find it at the moment.

You can put a DOEVENTs within the tight loop.

You can add something like an INKEY() to the loop - even if you do nothing with it, it will allow windows events to be processed. If the poll rate of your app is critical (ie if a delay results in dropped data) neither of the first two solutions is very good.

You can adjust the priority of the VFP executable with Task Manager.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform