[Gambas-user] File lock
Budi Arief Gusandi
budi at ...415...
Tue Apr 13 06:49:19 CEST 2004
1. Just put a variabel key in the DataFile such as "Used = 0/1" to show
that the data file is being used or not. So if the first program run, set
the variable to 1, so other program that will use the file will check the
value to allow the program to use the file or waiting. When termintaing
the program, dont forget free it by setting the value to 0 or you'll get
locked forever.
2. Use the methode like gambas IDE GUI with .Lock File
Regards,
Budi Arief Gusandi
-
On Tue, 13 Apr 2004 06:33:49 +0200, Frank Berg <frankberg at ...390...> wrote:
> Hi,
>
> if 3 Programms works with 1 Datafile, how can i ask/set lock to the
> file, so that 2 programm are waiting, until the first program are ready.
>
> frank
-
More information about the User
mailing list