Search found 80 matches: flock

Return to advanced search

Re: TDatabase or my error?

... use (set lShared to .f., it defaults to .t.). Method New( cAlias, cFile, cDriver, lShared, lReadOnly ) Class TData The reason you can't just do an flock() on a shared database is that other users could have it open and even be editing a record when you do the flock. By opening it in exclusive use, ...
by James Bott
Thu Jun 22, 2017 3:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase or my error?
Replies: 3
Views: 603

TDatabase or my error?

Hello. Sorry for my English. Can I open a DBF Shared, and later do a FLock() to make a ZAP()?????????????????????????????????? I open a DBF in this way - I'm using TData from Mr. James Bott CLASS TSala from TXData   Method New()ENDCLASSMethod ...
by D.Fernandez
Thu Jun 22, 2017 5:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase or my error?
Replies: 3
Views: 603

New FTDN February/Febrero 2017 (FWH 17.02)

... now it is enough to call RefreshCurrent() after editing. - Now, locking and unlocking actions of browse do not disturb any file or record locks ( flock() / dbrlock(nrec) ) already placed by the programmer. Also, now internal locking by xbrowse includes evaluation of bOnChange also. - Fix: Seekbar ...
by Antonio Linares
Fri Feb 24, 2017 12:37 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN February/Febrero 2017 (FWH 17.02)
Replies: 2
Views: 2124

Re: program very slow in LAN with 2 users

... revisando el código las instrucciones de bloqueo de archivos para hacer los ingresos, modificaciones o eliminaciones, utilizaba la clausula FLOCK(), "bloqueo de archivo" , las reemplace por las RLOCK(),"bloqueo de registro", saque en todas partes la clausula COMMIT, (aquí ...
by armando.lagunas
Tue Mar 15, 2016 1:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: program very slow in LAN with 2 users
Replies: 6
Views: 1506

Re: lentitud tremenda en red

... revisando el código las instrucciones de bloqueo de archivos para hacer los ingresos, modificaciones o eliminaciones, utilizaba la clausula FLOCK(), "bloqueo de archivo" , las reemplace por las RLOCK(),"bloqueo de registro", saque en todas partes la clausula COMMIT, (aquí ...
by armando.lagunas
Tue Mar 15, 2016 1:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: lentitud tremenda en red
Replies: 20
Views: 5397

Re: Harbour-32.dll

HB_FUN_HB_CODEPAGE_HR646 @367 HB_FUN_HB_CODEPAGE_HR852 @368 HB_FUN_HB_CODEPAGE_HRISO @369 HB_FUN_HB_CODEPAGE_HRWIN @370 HB_FUN_HB_CODEPAGE_HU852 @371 HB_FUN_HB_CODEPAGE_HU852C @372 HB_FUN_HB_CODEPAGE_HUISO @373 HB_FUN_HB_CODEPAGE_HUWIN @374 HB_FUN_HB_CODEPAGE_IS850 @375 HB_FUN_HB_CODEPAGE_IS861 @376...
by pgfdz
Fri May 29, 2015 8:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Harbour-32.dll
Replies: 5
Views: 2368

Re: Harbour-32.dll

EXPORTS HB_FUN_AADD @1 HB_FUN_ABS @2 HB_FUN_ACCELERATO @3 HB_FUN_ACCELERATOR @4 HB_FUN_ACHOICE @5 HB_FUN_ACLONE @6 HB_FUN_ACOPY @7 HB_FUN_ADEL @8 HB_FUN_ADIR @9 HB_FUN_AEVAL @10 HB_FUN_AFIELDS @11 HB_FUN_AFILL @12 HB_FUN_AINS @13 HB_FUN_ALERT @14 HB_FUN_ALIAS @15 HB_FUN_ALLTRIM @16 HB_FUN_ALTD @17 H...
by pgfdz
Fri May 29, 2015 8:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Harbour-32.dll
Replies: 5
Views: 2368

Re: use FLOCK()

I am getting the impression that I offended you no problem at all My before code shows how to file system handle can lock or only mark as used... all depend... the key is how use it. Other key is open files of named system 'in use mark' in fopen shared mode. This permit to other users collect info ...
by hmpaquito
Sat Jan 31, 2015 7:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

File locks are issued all the time behind the scenes. Every skip on a shared dbf with an index locks the index file until after skip is complete. This is to ensure that the index tree has not changed until after the next record is resolved. Having the locks cached is not the best idea when each user...
by Gale FORd
Fri Jan 30, 2015 11:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

... meant locked. They are very similar. A locked file blocks write access. Maybe this is a language translation thing. From the Clipper help file: FLOCK() is a database function used in network environments to lock an open and shared database file, preventing other users from updating the file ...
by James Bott
Fri Jan 30, 2015 11:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

James Bott wrote:The problem is that as long as the computer is frozen, no one else on the network can access the locked file(s).

I'm not


what is a blocked file ? Is it a file opened in shared mode ?
by hmpaquito
Fri Jan 30, 2015 11:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

Eduardo, Did you mean file locks or record locks? Either way, I use database objects. I wrote a subclass to TDatabase which adds many enhancements. I added some enhancements for record locking including automatic retries if a record is already locked. Personally, I aways use optimistic locking so a ...
by James Bott
Fri Jan 30, 2015 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

Hello,

And how do You Manage record locks?.

Thank You
by mgsoft
Fri Jan 30, 2015 8:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: use FLOCK()

The problem is that as long as the computer is frozen, no one else on the network can access the locked file(s). I'm not saying this is a big issue, but I have had clients that just left it frozen until I came in to fix it. This left everyone else without access to the file. It only happens rarely, ...
by James Bott
Fri Jan 30, 2015 8:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: Uso de Diccionario de Datos ADS y tablas libres

Reinaldo, gracias por tu respuesta

Uso Tablas ADT

Quiero entender que si utilizo AdsLocking( .T. ) ADS bloquea los registros ??
(a la hora de escribir en la tabla)

si utilizo AdsLocking( .F. ) yo tengo que bloquear los registros ??
(en todo el sistema yo utilizo RLock, FLock y DbUnLock)
by VitalJavier
Fri Jan 30, 2015 6:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Uso de Diccionario de Datos ADS y tablas libres
Replies: 22
Views: 6721
PreviousNext

Return to advanced search

cron