04 Jan 2019 14:58
Na tabela aberta na área atual, e em todos os registros. Para ter esse efeito em áreas relacionadas e demais áreas abertas, use DbUnlockAll(), ou DbUnlock()->cNomeAlias.rubens escreveu:Isso apenas no registro atual ou na tabela inteira?
DbUnlock():
Releases file and all record locks in a work area.
(Tradução livre: libera o arquivo e todos os registros de uma determinada área)
PS: Se não informar a área, exemplo: DbUnlock()->cNomeAlias, o efeito será exclusivo na área atual.
DbUnlockAll():
Unlocks all records and releases all file locks in all work areas.
(Tradução livre: libera todos os registros e todos os arquivos em todas as áreas)
05 Jan 2019 18:01
08 Jan 2019 10:18
10 Jan 2019 09:29
Error LETO/1006 Erro de criacao: DB\Harbour\h-AsaPrev\NETIO\SERVER5\DB\TMP6439544.CDX (DOS Error 3)
Called from ->ORDCREATE(0)
10 Jan 2019 11:41
10 Jan 2019 12:44
Jairo Maia escreveu:Alexandre, ainda não atualizei o LETO, mas você poderia fazer um teste por favor com a nova versão? Seria alterar DataPath = DB para DataPath = C:\DB, ou seja, colocar a unidade e reiniciar o serviço, para ver se vai funcionar.
12 Jan 2019 16:35
Olá rossine,
Qual versão do Harbour você está usando? Pergunto porque nas duas versões mais recentes (a de 31/12/2018 e a anterior) tive muito problema na hora de travar registros usando o LETO, então voltei a usar uma versão de Junho de 2017.
Isso porque uso o Harbour 3.2, sobre o 3.4 não sei.
12 Jan 2019 18:44
cIpAddServer := [192.168.1.109]
cPortaServer := [2812]
cServidorDB := [//] + cIpAddServer + [:] + cPortaServer + [/]
nTimeOut := -1
Leto_Connect( cServidorDB, , , nTimeOut )
15 Jan 2019 21:01
asimoes escreveu:Eu tenho usado o harbour 3.4 compilado com LLVM/CLANG 7.01 e também a última atualização do letodbf de 12/01, o meu sistema está estável.
Faço DbRLock(), DbCommit(), DbUnLock() sem problemas.
Lembro de problemas com indice e por acaso descobri que era o parâmetro timeout Leto_Connect()
Passei usar: nTimeOut := -1
Nunca mais tive problemas com abertura de tabela e indices, as gravações estão ok.
Ex.:
- Código:
cIpAddServer := [192.168.1.109]
cPortaServer := [2812]
cServidorDB := [//] + cIpAddServer + [:] + cPortaServer + [/]
nTimeOut := -1
Leto_Connect( cServidorDB, , , nTimeOut )
20 Fev 2019 20:40
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
IF EXIST "obj\api\letocl.obj" del obj\api\letocl.obj
bcc32 -c -Iinclude;D:\XHARBOUR\include -d -tWM -D__WIN32__ -D__CONSOLE__ -DUSE_PMURHASH=1 -D__LETO_C_API__=1 -DLETO_NO_MT=1 -DLETO_NO_THREAD=1 -oobj\api\letocl.obj source\client\letocl.c
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
source\client\letocl.c:
Error E2209 D:\XHARBOUR\include\hbzlib.h 41: Unable to open include file '../source/rtl/zlib/zlib.h'
Error E2141 include\funcleto.h 176: Declaration syntax error
Error E2141 include\funcleto.h 177: Declaration syntax error
Error E2141 include\funcleto.h 178: Declaration syntax error
Error E2141 include\funcleto.h 180: Declaration syntax error
Error E2141 include\funcleto.h 181: Declaration syntax error
Error E2293 include\funcleto.h 182: ) expected
Error E2141 include\funcleto.h 185: Declaration syntax error
Error E2141 include\funcleto.h 186: Declaration syntax error
Error E2303 include\funcleto.h 189: Type name expected
Error E2293 include\funcleto.h 190: ) expected
Error E2303 include\funcleto.h 191: Type name expected
Error E2303 include\funcleto.h 192: Type name expected
Error E2147 include\funcleto.h 193: 'HB_BOOL' cannot start a parameter declaration
Error E2141 include\funcleto.h 196: Declaration syntax error
Warning W8017 D:\XHARBOUR\include\hbapirdd.h 125: Redefinition of 'HB_FT_TIME' is not identical
Error E2139 include\letocl.h 111: Declaration missing ;
Error E2238 include\letocl.h 112: Multiple declaration for 'HB_USHORT'
Error E2344 include\letocl.h 111: Earlier declaration of 'HB_USHORT'
Error E2139 include\letocl.h 112: Declaration missing ;
Error E2238 include\letocl.h 113: Multiple declaration for 'HB_USHORT'
Error E2344 include\letocl.h 111: Earlier declaration of 'HB_USHORT'
Error E2139 include\letocl.h 113: Declaration missing ;
Error E2238 include\letocl.h 114: Multiple declaration for 'HB_USHORT'
Error E2344 include\letocl.h 111: Earlier declaration of 'HB_USHORT'
Error E2139 include\letocl.h 114: Declaration missing ;
Error E2228 include\letocl.h 114: Too many error or warning messages
*** 26 errors in Compile ***
** error 1 ** deleting obj\api\letocl.obj
23 Fev 2019 11:10
27 Fev 2019 20:16
28 Fev 2019 09:06
Nascimento escreveu:como eu apago um indice que esta sendo gerenciado pelo letodb
Nascimento escreveu:se eu fechar os bancos tenho que reconectar?
Nascimento escreveu:falo isso pq em certo momento preciso fechar os bancos do modo compartilhado e reabrir em exclusivo
sem o leto em alguns casos uso rlock() , e em uma função deu o erro Leto/1022 travamento requerido, que so parou quando troquei rlock() por flock(). por hora são essas pequenas duvidas
07 Jun 2023 22:02
C:\PROGRAMAS\LetoDBf>hbmk2 letodb.hbp
hbmk2: Processando opções do ambiente: -comp=mingw
source\server\server.prg(348) Warning W0001 Ambiguous reference 'LETOOPT_UDFENABLED'
source\server\server.prg(349) Warning W0001 Ambiguous reference 'LETOOPT_DEBUGLEVEL'
source\server\server.prg(393) Warning W0001 Ambiguous reference 'LETOOPT_UDFENABLED'
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'LetoMgKillUser':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:3794:16: warning: implicit declaration of function 'hb_fsPipeWrite' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'HB_FUN_LETO_FTS':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:7355:16: warning: implicit declaration of function 'hb_strAtI' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'leto_dbEvalJoinPrePos':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:8370:10: warning: implicit declaration of function 'hb_itemCompare' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'HB_FUN_LETO_DBEVAL':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:9744:4: warning: implicit declaration of function 'HB_ISEVALITEM' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'leto_Set':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:12848:16: warning: implicit declaration of function 'hb_setGetItem' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c: In function 'leto_Info':
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:15122:15: error: 'DBI_TRANSREC' undeclared (first use in this function)
../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c:15122:15: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../PROGRAMAS/LetoDBf/source/server/leto_2.c: In function 'HB_FUN_LETO_SERVER':
../../../../../../PROGRAMAS/LetoDBf/source/server/leto_2.c:2333:13: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
../../../../../../PROGRAMAS/LetoDBf/source/server/leto_2.c:2377:13: warning: implicit declaration of function 'hb_fsPipeWrite' [-Wimplicit-function-declaration]
../../../../../../PROGRAMAS/LetoDBf/source/common/common_c.c: In function 'HB_FUN_LETO_ISVALIDIP4':
../../../../../../PROGRAMAS/LetoDBf/source/common/common_c.c:773:56: error: 'LETO_DEFAULT_PORT' undeclared (first use in this function)
../../../../../../PROGRAMAS/LetoDBf/source/common/common_c.c:773:56: note: each undeclared identifier is reported only once for each function it appears in
hbmk2[letodb]: Erro: Executando compilador C/C++. 1
C:\HB32\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -DUSE_LZ4=1 -DUSE_PMURHASH=1 -W -Wall -pipe -IC:/HB32/include -I../../../../../../PROGRAMAS/LetoDBf/include -I../../../../../../PROGRAMAS/LetoDBf/source/3rd/lz4/lib -IC:/HB32/contrib/hbct C:/Users/numer/AppData/Local/Temp/hbmk_f17t3t.dir/server.c C:/Users/numer/AppData/Local/Temp/hbmk_f17t3t.dir/errorsys.c C:/Users/numer/AppData/Local/Temp/hbmk_f17t3t.dir/common.c ../../../../../../PROGRAMAS/LetoDBf/source/server/errint.c ../../../../../../PROGRAMAS/LetoDBf/source/server/letoacc.c ../../../../../../PROGRAMAS/LetoDBf/source/server/letovars.c ../../../../../../PROGRAMAS/LetoDBf/source/server/letofunc.c ../../../../../../PROGRAMAS/LetoDBf/source/server/letolist.c ../../../../../../PROGRAMAS/LetoDBf/source/server/leto_2.c ../../../../../../PROGRAMAS/LetoDBf/source/common/blowfish.c ../../../../../../PROGRAMAS/LetoDBf/source/common/common_c.c ../../../../../../PROGRAMAS/LetoDBf/source/3rd/lz4/lib/lz4.c ../../../../../../PROGRAMAS/LetoDBf/source/common/lz4net.c ../../../../../../PROGRAMAS/LetoDBf/source/common/PMurHash.c C:/Users/numer/AppData/Local/Temp/hbmk_8p4cya.c
11 Jun 2023 00:44