yangyxd / FMXUI

FMX跨平台基础UI库
MIT License
261 stars 96 forks source link

Update UI.Frame.pas #30

Closed marlonnardi closed 3 years ago

marlonnardi commented 3 years ago

Fix error operation not alowed in Android and IOS

KngStr commented 3 years ago

Thanks.

Your forgot about HideWaitDialog. WaitDialog likes Hint, thread safe is not bad.

PS: This is not error, 'UI Code' is just not allowed to be run in thread.

marlonnardi commented 3 years ago

yes I am identifying other errors now in IOS, we will have to analyze it better, on Android works perfectly.

image

KngStr commented 3 years ago

Please confirm your code of UI is running in the main thread.

marlonnardi commented 3 years ago

Thanks.

Your forgot about HideWaitDialog. WaitDialog likes Hint, thread safe is not bad.

PS: This is not error, 'UI Code' is just not allowed to be run in thread.

Exactly, HideWaitDialog was missing, fixed for Android and IOS

KngStr commented 3 years ago

Thanks.