Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General Protection Fault when calling FLOCK()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00484099
Message ID:
00484200
Vues:
12
SYS(2011), ISRLOCKED(), ISRLOCKED() will tell you if the file or record are locked in the current session, without attemting to lock. It will not tell you if another user or session has them locked.
VFP can't tell if a record or file lock will succed in a multiuser environment. If that is what are you trying to do the only way, with VFP commands, is to attempt to lock.

>Doru,
>
>Got a good lead/solution. My problem ocurred with two sessions in the same machine. It works fine on two different machines. So will use SYS(2011) to see if already locked. Thanks for your help.
>
>Alex
>
>
>
>>Doru,
>>
>>Just tried it on a Win98 machine. It works fine with either SET REPROCESS 0 or 1.
>>
>>Thank you fro your help.
>>
>>Alex
>>
>>
>>>Doru, Thank you for your response.
>>>
>>>>If you have SET REPROCESS TO 0 (default) FLOCK() won't return .F., it will try to lock indefinitely. I don't know why it generates GPF...
>>>
>>>Do you mean that you don't know why it generates GPF in my case or in some other case ?
>>>
>>>I have SET REPROCESS TO 1. I am using a Win2K machine.
>>>
>>>Alex
Doru
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform