How to iterate over a Project Class to access the HW confic data in the Step7 Project? #201
Unanswered
OleKristianLieNOV
asked this question in
Q&A
Replies: 1 comment
-
Sorry didn't see this issue until now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I am currently learning C# so if the answer is obvious please forgive me.
My issue:
When executing Project.AllFolders in realtime, the content of the Project.AllFolders is not being loaded and my application continues without data and crashes. When running in debug mode and manually pausing for that step then it loads Project.AllFolders into memory and executes just fine.
My code:
Things I have tested that did not work:
Iterating over the Project instead of Project.AllFolders, but that does not work.
Adding a async method that reads Project.AllFolders and awaiting that, but that sent me back to the original issue where Project.AllFoldes is not loaded when running normally, but manually waiting in debug mode it is loaded.
Thank you for taking the time to review and please let me know if any more information is needed or you know of a solution!
Beta Was this translation helpful? Give feedback.
All reactions