Hello, Sometimes when I compile my c++ program on Eclipse I get this error at the end when it tries to generate the library: Starting library generation…
Unexpected exception during execution
System.IO.IOException: The process cannot access the file ‘C:\\Users\\Engineer01\\workspace 2\\ThreadExample\\bin\\AXCF2152_19.0.4.22338\\Release\\lib\\libThreadExample.so’ because it is being used by another process.
at be.GetContent(Boolean write, Boolean retry) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 56736
at PlcNext.Common.Tools.FileSystem.VirtualFile.OpenRead(Boolean retry) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 212952
at fv.a.c() in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 176102
at fv.b4(cu A_0, String A_1, String A_2, String A_3, ChangeObservable A_4, x A_5, Guid A_6, IEnumerable1 A_7) in C:\\\Users\\\pxcsw-afbuild\\\AppData\\\Local\\\Temp\\\~plcncli.0\\\plcncli.Common.dll.il:line 179112 at fq.b2(cu A_0, ChangeObservable A_1, String A_2, String A_3, String A_4, Guid A_5, IEnumerable1 A_6) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 171002
at ee.bx(ef A_0, ChangeObservable A_1) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 140001
at d7.b.a() in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 133895
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
-– End of stack trace from previous location where exception was thrown —
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
-– End of stack trace from previous location where exception was thrown —
at d7.bz(CommandArgs A_0) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 134175
at d9.Execute(CommandArgs commandArgs) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 137984
at PlcNext.Common.CommandLine.GenerateLibraryVerb.Execute(ICommandManager commandManager) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 255949
at PlcNext.Common.CommandLine.VerbBase.Execute() in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 261212
at fi.a(Object A_0) in C:\\Users\\pxcsw-afbuild\\AppData\\Local\\Temp\~plcncli.0\\plcncli.Common.dll.il:line 155028
at f9.a(String A_0) The only way I have found to fix this is to close the project in PLCNext Engineer that uses the library and turn of the PLCNext that is connected to the pc. What causes this error and how do I prevent it from occuring? Many thanks. PLCNext Engineer version: 2019-6 Eclipse version 2019 06 Firmware PLCNext PLC: 2019.0.4 LTS