Hello Tom, just an update for this subject.
In the code there were an ACL if ( access("$variable_with_path/../pathtodll/file.dll",'r')) { ... portion of code just before the commands described above.
I noticed in the trace log that we enabled, that at $variable_with_path the path had something like c:\dir1\dir2\dir3 and the second part, fixed on the code, folders separated by "/".
This way when we logged the entire path to the DLL file, the output was c:\dir1\dir2\dir3/../pathtodll/file.dll
I changed all of them to "\" and the problem stopped occurring.
The previously mentioned ACL expressions/commands were inside the if loop ...
It worked as is (without the change in the code to "\" ) until Epic 5.2 M030.
Any ideas?
Thankyou very much.