Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP bug, and how to fix it
Message
De
04/03/2023 08:41:59
 
 
À
04/03/2023 08:29:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01686313
Message ID:
01686326
Vues:
40
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform