Today, I lost a lot of time figuring how to fix a “unreal” problem about a piece of code that was supposed to be commented out. I even did a Level 2 reset of my PLCnext in order to erase a possible offending remaining piece of data that could lead to this problem, without success. I finally realized that the initial faulty problem originated from a debug build of my PCWLX, that I try to fix inadvertely with a release build. Somehow, somewhere into the PCWE build or packaging process some sort of interference exists. I could not provide a source demo to reproduce the problem, but I believe you can reproduce the problem easily. You will find my fault log file attached (it was about a too modern way of defining a class static array). I am sure I will not the be only one to fall into this trap if you do not fix it soon. Good luck.
By the way, I am up to date with PLCnext firware (1.02) and Eclipse SDK (1.01)
Hello Fblanchard, so you found the error cause?
Wich line of code caused it? Was it some C++17 syntax used or what do you mean bye too new?
Usually the IDE / Compiler should warn you about this as only the C++11 Flag is set in the project properties.
It is my mistake: when I was changing the build mode of my C++ project between Debug or Release, I assumed the “Export PCWLX” utility was adapting automatically. But when I try to reproduce the problem today, I realized that I had to manually select between the Debug or the Release binary to be process into a PCWLX (last combobox of the “Export PLCnext project to PCWLX” dialog). This is why my code fixes were sudently not found running on the PLCnext at the end. You might want to brainstorm to improve this process. May be creating a binary auto select mode based on the current project build setting. Thanks