5.1.2.0 critical error cannot access file

kumquat

Client
Регистрация
09.06.2012
Сообщения
10
Благодарностей
0
Баллы
1
Using template 1 to write/create 2.txt with "Good End"
with task manager -> start template 2 if file 2.txt exist + delete file

This occasionally crashes zenno:

2014-08-16 17:29:15.4940|ERROR|CurrentDomain UnhandledException
System.IO.IOException: The process cannot access the file 'C:\zenno\1\2.txt' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at ZennoLab.TaskCore.TaskManager.S6G4Laqria4athRaBGYO(Object )
at ZennoLab.TaskCore.TaskManager.EventTimerTick()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


Any help?
Should I just delete file with the 2nd template instead of using delete file option in task manager?
Thanks
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You shouldnt interact with files if they are used within templates manually
 

kumquat

Client
Регистрация
09.06.2012
Сообщения
10
Благодарностей
0
Баллы
1
What does that mean?

Zenno task manager is the only thing interacting with the file once it is created. it tries to 'remove' the file as selected in task setup

Am I using this incorrectly?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
How do you use this file before delete it? Do you bind it to list/table, did you use it in multithreads? why you delete it?
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)