Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug, and how to fix it
Message
From
04/03/2023 08:41:59
 
 
To
04/03/2023 08:29:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01686313
Message ID:
01686326
Views:
39
>Frankly, as with other OS calls, use sparingly. In case of clipboard, I prefer to call it only once, i.e. do everything to a local variable, and then when I'm done with it, copy it to _cliptext.

Yupp, "Code Chunky, not Chatty!"

>I've had similar cases with other system calls, like erase file - which is just a wrapper for the filesystem function, which is then executed... a bit later. So in the next step I try to create a new version of that file and bang, file still exists. Or, open a file for something, close it, try to erase - bang, still not closed, I was too fast. Will close a few milliseconds later, when the OS finishes doing other stuff.

Run del worked pretty well for in house stuff ;-))

>So my rule of pinky is to not call OS stuff in a fast loop, but rather when I get out of it.

makes sense
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform