iOS Question B4i in release mode doesn't update labels or other UI elements

ema01

Member
Licensed User
Longtime User
Something extremely strange. I have this application that is not behaving correctly in release mode. Everything works flawlessly in debug, but in release i am having certain strange situations as labels not updating, or i change some data in a place, then reopen it ad it is not changed (still shows the default data)

I tried doing something drastic such as adding a click event on a label, showing a toast message and then changing the content of the label.
Toast message is shown, label content is not changed.

I am lost, have no idea where to look at
 
Solution
Of course.
But i solved the problem: I had some custom widgets that had Base_Resize implemented. Base_Resize would reload the layout without clearing it first, essentially i would have two overlapping widgets, and all the references would point at the widget in the background

Swissmade

Well-Known Member
Licensed User
Longtime User
Maybe Sleep(ms) can help
ms = miliseconds
 
Upvote 0

ema01

Member
Licensed User
Longtime User
Maybe Sleep(ms) can help
ms = miliseconds
that reminded me something simillar that happened in the past: some initialization function would be called more than once due to resizing (which did not happen in debug) and i would lose references to many objects
 
Upvote 0

ema01

Member
Licensed User
Longtime User
Of course.
But i solved the problem: I had some custom widgets that had Base_Resize implemented. Base_Resize would reload the layout without clearing it first, essentially i would have two overlapping widgets, and all the references would point at the widget in the background
 
Upvote 0
Solution
Top