Page 1 of 1

Terminales desincronizadas

Posted: Thu Dec 16, 2021 2:25 am
by edufloriv
Saludos amigos,

Tengo el siguiente escenario:

1 servidor con windows 10
3 terminales con windows 7

Todos los terminales tienen un acceso directo al servidor (\\SERVER\InfoFarma\InfoFarma.exe). Desde hace un par de dias DOS DE LAS TERMINALES no muestran los mismos datos de las tablas que se ven en el servidor (1 terminal en cambio si).

Por ejemplo en las 2 terminales con el problema solo se ve hasta el registro de ventas 682323 mientras que en el servidor se puede ver hasta el registro 682643 :roll:

Incluso si desde el terminal accedo a las tablas y las aperturo directamente usando la ruta del acceso directo (\\SERVER\InfoFarma\Dbf\) si voy al último registro efectivamente solo me muestra hasta el 682323, y si hago lo mismo en el servidor o en la terminal que funciona bien se puede ver el último registro 682643, es como si estas 2 terminales se hubiesen quedado en el pasado. Estimo que se trata de un problema a nivel del Windows. ¿ Alguien tiene una idea de porque puede ocurrir esto ?

Cordiales saludos a todos y mil gracias anticipadas por su tiempo.

Re: Terminales desincronizadas

Posted: Thu Dec 16, 2021 5:14 am
by AUGE_OHR
hi,

DBF can be corrupt ...

Code: Select all

   USE Original EXCLUSIVE
   COPY TO Fresh FOR .NOT. DELETED()
   CLOSE
   
   // do you have SMB2 Patch ? 
   SLEEP(100)
   
   FERASE(Original)
   RENAME Fresh TO Original
INDEX can be corrupt

Code: Select all

   aDir :=Directory(cPath+"*.CDX")
   AEVAL(aDir ,{|e| FERASE(e)}) 
   // now build new Index
---

since Vista / Win7 we have SMB2 and when use UNC Path "most" Server Problem are gone
but we also got a "new Cache" for Local
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN

as explained in Article you should set
Directory cache, by setting DirectoryCacheLifetime to ZERO.
File Not Found cache, by setting FileNotFoundCacheLifetime to ZERO.
File information cache, by setting FileInfoCacheLifetime to ZERO.
under

Code: Select all

   HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters
to avoid "delay" when update and sync Data

! Note : "Lanmanworkstation" is the PC where EXE run which communicate with Server
so it have no Effect on your Home-Office PC which is remote connect to PC ;)

Re: Terminales desincronizadas

Posted: Sat Dec 18, 2021 6:17 pm
by franco
Not sure if this is relevant. I am sure you have checked, but when I update the exe program in the server and the program is not shut down in workstations, there starting icon looses it`s link. Maybe in your case if they do not shut off there computer they may still be running old program.
Not sure if this affects data.