Page 1 of 1

revSetStackFileProfile: How fast? Is it blocking?

Posted: Sat Feb 11, 2023 1:09 pm
by trevix
Hello.
I use revSetStackFileProfile in order to change all the labels (many...) of my mobile standalone, according to the language chosen by the user.

I noticed that if the revSetStackFileProfile script is running too close in the script to other setting activity (like bluetooth, sockets, opening library, etc) the standalone crashes on Android 11 (not on iOS).

My question is: the line

Code: Select all

revSetStackFileProfile "English", "Referi" --= English, for example, takes more or less a second
sets everything in the standalone before releasing to the next script line or the script lines after that are run while stack, substacks, cards and controls are still being modified?

I tried to pinpoint the crash, but it does not happens while debugging line by line.
Thanks for any help.
Trevix

Re: revSetStackFileProfile: How fast? Is it blocking?

Posted: Sat Feb 11, 2023 3:57 pm
by dunbarx
Hi.

Shooting in the dark here. Does that command set the result? If so, could you wait until the result is, likely, empty, until proceeding with the rest of the handler?

Craig

Re: revSetStackFileProfile: How fast? Is it blocking?

Posted: Tue Jan 07, 2025 9:13 am
by trevix
I am still having crashes on Android 11, because of revSetStackFileProfile.
Trying to re-open the stack, after using the revSetStackFileProfile command and saving it, sometimes but not always, returns "Stack is corrupted, check for - backup file" in the result.

Being a random problem, I don't have a recipe for it, but it is a problem only on Android "slow" devices. No problems on OSX or iOS.
I also tried, instead, to use a repeat loop with revSetStackProfile on selected stacks, but this did not solve.

Clearly something else in my code interferes with the revSetStackFileProfile.

Being used to change the localization of my App, clearly this command need to be placed in the first phases of the opening process.
I tried to place it in the PreOpenstack or in the OpenStack: didn't solve.
I tried to slow down processing (with "wait 20 milliseconds with messages" in the loop of revSetStackProfile): didn't solve.

Any suggestions?
Thanks