B4J Question write file problem (sharing)

Tayfur

Well-Known Member
Licensed User
Longtime User
when My code write as file, I recive an error "This operation can not access the file because it is being used by another process"
I know real file open with other program.
Question is how can i solve it?
  • Maybe cheking it for openining status with other program
  • maybe waiting close action for other program
how can i do?


**********************************************************************
p.s. :

Hi Erel;
Log is not support other lonaguage chars (ş, ı, etc)
Please chek it for new updates. Thanks.

B4J Log result:
java.io.FileNotFoundException: C:\B4X\B4J\PoiExcel\Objects\FIRMA.xlsx (Dosya başka bir işlem tarafından kullanıldığından bu işlem dosyaya erişemiyor)

correct...
java.io.FileNotFoundException: C:\B4X\B4J\PoiExcel\Objects\FIRMA.xlsx (Dosya başka bir işlem tarafından kullanıldığından bu işlem dosyaya erişemiyor)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The logs work fine here:
SS-2018-01-30_18.02.06.png


You should catch the error with a Try / Catch block.
 
Upvote 0
Top