1. Beatrix Willius
  2. Valentina Database ADK
  3. Вторник, Июль 02 2024, 05:04 AM
  4.  Подписаться через email
Xojo has announced that they are planning to support preemptive threads "soon". Can Valentina be changed to support preemptive threads? My users still are confused when they see the app as non-responding during longer Valentina tasks. They have been trained to regard this as bad.
Комментарий
There are no comments made yet.
Ruslan Zasukhin Ответ принят
Hi Beatrix,

yes of course. In other ADKs we have it.

Maybe Xojo itself will do what you need.

Let's wait then they ship it
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
Hello Beatrix,

As I understand it, you must avoid running time-consuming tasks in the main thread. That thread is mainly for UI, so it would not be "non-responding" states in this scenario.

So, I believe Xojo provides some way to call functions in another thread - right? Or do you think we need to periodically call "yield" from every V4RB method (like we did for diagnose, reindex)?
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
I believe in being prepared and in testing.

For the main tasks my app already is threaded with a clear separation between database tasks and UI. But it's still easy to get the beachball. Just this morning a user told me that he deleted some data, saw the beachball and then force-quit the app because he saw "not-responding". I've been telling you that this is a problem for at least 10 years if not longer.
Комментарий
There are no comments made yet.
  • Страница :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories