@m4zuper Strange, as this is broken at least since 26.8.0 or something related to this. Hence I thought it's generally not working an concerns every user...
Currently using 27.6.2 on Windows 10, 64BG RAM, Ryzen 7 5800X. BAS is installed at the standard location on C drive. And it happens with every project I try to add this way. Okay, it's not that issue but it's convient to add a project with just one click.
How do I delete a line from a file after use in a for loop, but the thread doesn't end?
-
I'm trying to use lines from a file which should change after each run, but it seems like the built in functionality for this only works if the thread ends and doesn't work when I use it in a for loop. I fixed this issue by loading the file into a list then using the first element of the list as a variable and then deleting that variable after using it for something. The problem with this is that when using more than 1 thread, since the lines aren't actually deleted from the thread and it's just parts of the list being deleted, the program is returning like 4 or 5 of the same outputs. tldr: How do I delete a line from a file after using it(in a for-loop, and without the thread ending)?
-
@T9 did you find the answer? did you solve it?
-
For multithreading you should use resources. There are additional
settings for each resource, just double click it inside resources pane.
There you can fine tune your settings to achieve desirable behavior.In your case you should set resource to use each line only once,
and set max symultanious usages to 1. Check other settiings too
to make it work the way you want.