Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp5 application give illegal operations in Win9x
Message
From
12/02/2001 22:50:49
 
 
To
12/02/2001 22:08:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00474860
Message ID:
00475162
Views:
68
>Hi,
>
>The machine running the system are fine, they are brand new.
>I don't use extensive graphics or resources at all.
>
>The battery of the system are okay. My application just keep
>waiting for certain file, on detecting them, will unzip and
>post all the file into their respective files. That all.
>
>I using only Win32 API sleep and doevent() only.
>
>It just give me problem of the system time slow down by
>half any hours or more.
>
Why not just re-engineer this to do away with the Win32 component? A form with a timer that performed the poll could substitute for the Sleep() API call, and would eliminate that as a source of the time loss. You simply start the form and sit at a READ EVENTS to run the form; it provides you with an easy shutdown point as well if you put such in the Form. This eliminates any suspecicion that Sleep() is behind the loss of time.

If you suspect VFP is the source of the time loss, you could also do the polling in a language other than VFP - it'd be fairly simple to write in VBScript, for example, and just trigger the VFP app when there's work to be done. By not having the VFP app running constantly, you eliminate any suspicion that VFP is causing the time loss.

The illegal operation error after just sitting for extended periods of time would tend to make me suspect the platform the app ran on. It's unusual to see things just die at random after sitting idle for long periods of time.
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