@palnamalina said in Как включить пересылку в Gmail?:
Актуально
https://community.bablosoft.com/topic/24964/bas-не-открывает-всплывающую-диалоговую-страницу/28
@Fox Например, если во время работы произойдет ошибка, я хочу, чтобы она повторно использовала старые данные до тех пор, пока она не будет успешной.
И я не хочу, чтобы в нескольких потоках были дублирующиеся данные.
Можете ли вы привести мне пример этого?
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox Например, если во время работы произойдет ошибка, я хочу, чтобы она повторно использовала старые данные до тех пор, пока она не будет успешной.
И я не хочу, чтобы в нескольких потоках были дублирующиеся данные.
Можете ли вы привести мне пример этого?
Вы можете обернуть действия, которые могут вернуть ошибку в игнорирование ошибок
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox В некоторых случаях необходимо запустить новый поток и повторно использовать старые данные.
В таком случае вам достаточно настроить использование ресурсов

Пример скрипта: 2824.xml
Пример данных для тестового скрипта: test.txt
@Fox 
Спасибо большое, но это не то, чего я хочу.
Как и в этом случае, поток 2 дает сбой, он использует данные как «2».
Поскольку в этом потоке возникла ошибка, при запуске нового потока он должен повторно использовать данные «2», а не «4».
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox
Спасибо большое, но это не то, чего я хочу.
Как и в этом случае, поток 2 дает сбой, он использует данные как «2».
Поскольку в этом потоке возникла ошибка, при запуске нового потока он должен повторно использовать данные «2», а не «4».
Зачем вам нужно что бы данные получал именно тот поток, который с ними работал до этого? Чем вновь запущенный поток №2 отличается, к примеру, от потока №4?
@Fox The thread I'm talking about is just thread 2, not thread 4, please review my image.
As you can see, initially, thread 2 works with the value "2".
But when thread 2 fails, I want it to reuse the value "2", not get the next new value "4".
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox The thread I'm talking about is just thread 2, not thread 4, please review my image.
As you can see, initially, thread 2 works with the value "2".
But when thread 2 fails, I want it to reuse the value "2", not get the next new value "4".
I understood what you meant, but I didn't understand why it was necessary? Describe in detail the task you are trying to solve in this way
@Fox I have a list of accounts, and I have tasks on those accounts.
But there is a problem, that is, the work must be completed one after another, that is, account 1 is finished, then account 2, account 3, etc.
So, in case of an error, the thread will restart, and I want it to retrieve the old information used before, so that my work will be correct.
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox I have a list of accounts, and I have tasks on those accounts.
But there is a problem, that is, the work must be completed one after another, that is, account 1 is finished, then account 2, account 3, etc.
So, in case of an error, the thread will restart, and I want it to retrieve the old information used before, so that my work will be correct.
The easiest way is not to restart the thread, put all actions in a function, and wrap the function call in ignoring errors. In case of any unexpected error, the thread will not terminate, and the work will start a new.
Test script: 2825.xml

@Fox Thank you very much, I know this.
But I've had problems where restarting a new thread solves the problem, leaving the current thread intact doesn't solve the problem.
And I want to try to solve the problem of restarting the stream but still being able to reuse the old data in case the old stream fails.
Hope you can solve this problem for me without needing another alternative.
Once again, thank you very much.
@selenagomez2391 said in Как проверить, используются ли данные A в каком-либо потоке?:
@Fox Thank you very much, I know this.
But I've had problems where restarting a new thread solves the problem, leaving the current thread intact doesn't solve the problem.
What is this problem? You can always change the profile inside the stream, this will reset all browser data.
And I want to try to solve the problem of restarting the stream but still being able to reuse the old data in case the old stream fails.
Hope you can solve this problem for me without needing another alternative.
Once again, thank you very much.
I don't see the point in this, I have described to you several solutions to your problem. If you fundamentally need to get the old data in the thread after restarting, use an object in a global variable or a database.
@Fox said in Как проверить, используются ли данные A в каком-либо потоке?:
I don't see the point in this, I have described to you several solutions to your problem. If you fundamentally need to get the old data in the thread after restarting, use an object in a global variable or a database.
Yeh, I'm waiting for it, I just hope you give me an example of it.