I'm using Codesys 3.5.12 and File Access library 3.5.7 to read and write 3 user configuration files and 3 to read default configuration files. The files are not big with around 100 parameters each.
Usually it works but many times it's randomly throwing the following error:
ASM_CREATEJOB_FAILED
5113 Job creation of AsyncManager failed
I read and write the files sequentially. As soon reading/writing of the first files is complete it goes to the next one. I have also tried to put time delay in between but the error is still there and it's driving me crazy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, I haven't read that you start a new job after finished the old one. Are other libraries in your project, which use the AsyncManger. F. e. CAA NetBaseSrv
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Thomas
I rewrote the sequential reading and writing code of the 3 files, implementing a simple CASE state machine and it seems that the problem is in the write and read file function block.
It seems that the error always appear during state 3 when file that was read must be closed as it is shown in the attached picture.
Below is the code of read file function block.
I'm using Codesys 3.5.12 and File Access library 3.5.7 to read and write 3 user configuration files and 3 to read default configuration files. The files are not big with around 100 parameters each.
Usually it works but many times it's randomly throwing the following error:
ASM_CREATEJOB_FAILED
5113 Job creation of AsyncManager failed
I read and write the files sequentially. As soon reading/writing of the first files is complete it goes to the next one. I have also tried to put time delay in between but the error is still there and it's driving me crazy.
Dear Kallileo,
The number of jobs is limited in the Runtime. This limit applies to all libraries together!!!!
Do you have several jobs (reading/writting) at the same time?
== >> Make sure that a new job is not started until the other one is finished.
Regards Thomas
Sorry, I haven't read that you start a new job after finished the old one. Are other libraries in your project, which use the AsyncManger. F. e. CAA NetBaseSrv
Hi Thomas
I rewrote the sequential reading and writing code of the 3 files, implementing a simple CASE state machine and it seems that the problem is in the write and read file function block.
It seems that the error always appear during state 3 when file that was read must be closed as it is shown in the attached picture.
Below is the code of read file function block.
Found the problem.
Had to add
in state 2 when file read is complete.
Thanks