1. Beatrix Willius
  2. Valentina Database ADK
  3. Пятница, Декабрь 15 2017, 01:53 PM
  4.  Подписаться через email
What do I need to do to run a diagnosis without blocking everything? The pizza of death is showing and the app shows up as "not responding" in the activity viewer?

I already use a thread


dim theDiagnoser as new DiagnoseThread(theDatabase, Silent)
theDiagnoser.Run

while not DiagnoseFinished or theDiagnoser.State = Thread.Running
app.SleepCurrentThread 100
wend
NotificationManager.RemoveReceiver self


and in the thread


if theDatabase.Diagnose(VerboseLevel, theDiagnoseFile) then

'database is okay
theDiagnoseFile.Delete
NotificationManager.Post "DiagnoseFinished", "Success"
'and so on


Any not responding makes users who may not be very experienced with computers force-quit my app.

Xojo 2017r1, El Capitan/High Sierra. Valentina 7.5.6.

Regards

Beatrix Willius
Комментарий
There are no comments made yet.
Ruslan Zasukhin Ответ принят
hi Beatrix,

well, we have magic call from vkernel to Xojo SDK
to break this hang of Xojo in their cooperative threads.

We need ask Ivan to add it for Diagnoze.
Please add into Mantis feature request about this.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Wonderful! That's really great news. Here is the Mantis issue: http://www.valentina-db.com/bt/view.php?id=8150

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Any news on this topic?

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Комментарий
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