- Jun 6, 2020
- 11,517
- 4,383
If think this is a bug. I am building using B4A 10.0, Android 9, Samsung Galaxy Tab Active2, portrait orientation
Summary
This line of code causes the program to hang. It may process a few more lines of UI related code, but it will eventually freeze. For this example, Result = true.
Bad code:
Refactoring it into these two lines of code resolves the issue.
Good code:
Complete sample:
Summary
This line of code causes the program to hang. It may process a few more lines of UI related code, but it will eventually freeze. For this example, Result = true.
Bad code:
wait for (Method2) Complete (Result As Boolean) : If Not(Result) Then Return
Refactoring it into these two lines of code resolves the issue.
Good code:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید