Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File is in use by another user
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00822419
Message ID:
00823728
Views:
31
Esta mensagem é gerada pelo erro 108, que tem a seguinte descrição :


"You have attempted a USE, DELETE, or RENAME command on a file that is being used by another user on a network."

Então vc esta tentando abrir um arquivo, apagar ou renomear um arquivo já aberto, que pode estar aberto em sua propria rotina.


Se vc usa o VFP8 tente usar o Try Chatch para solucionar o problema :
TRY 
   
   < seus comandos >



CATCH TO loErro
      = MESSAGEBOX( loErro.Message      + CHR(13)   +;
		  loErro.LineContents + CHR(13)   +;
		  [Erro  : ] +STR(loErro.ErrorNo,5) +CHR(13)+;
		  [Linha : ] +STR(loErro.LineNo ,5) ; 
		  ,0+16,[Erro na execução do processamento...]   )

   SET STEP ON
   * analise o valor de loErro, e faca o tratamento adequado...

ENDTRY
>Paulo,
>
>Eu uso private data session, set excl off e ainda abro shared...
>
>E voce concorda que se fosse um "simples" erro de programação o problema iria ocorrer TODAS as vezes em TODAS as maquinas??
>
>E, quando temos um arquivo aberto exclusivo, a mensagem nao seria "file access is denied" ??
>
>Abraços
Paulo Cesar Carneiro
desenvolvimento@controplan.com.br


"My God, what have we done?"
-- Capt. Robert Lewis, co-pilot of the Enola Gay, recalling the moment the atomic bomb exploded over Hiroshima

At 8:15 a.m. on August 6 1945
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform