FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[wm21 - android] Control tempate & Thread not stable
[wm21 - android] Control tempate & Thread not stable
Débuté par ccc2, 21 oct. 2016 06:12 - 1 réponse
Connectez-vous…
ccc2
#1
Posté le 21 octobre 2016 - 06:12
Hi,
in order to improve speed , I modify my control template (looper) to use thread to retrieve data from webservice and fill the looper.
in test , if a window only contain more than 2 control template then the app keep crashing.
in 3 times test, 1 times will failed
after countless of try and error . I found the lessees crash method is to hide the looper and unhide after process finish . during that time I showing animated waiting image.
the bad part in this is , cannot select a row while process still running.
anyone has better solution for this?
Signaler
0
0
Fabrice Harari
#2
Posté le 21 octobre 2016 - 11:03
Hi
as you don't show us your code, I'm going to suppose that you are doing the same thing than all thread beginners, ie doing direct access to the UI from your threads... That is forbidden (and written in the help)...
To do that, you need to use a special function in your thread (ExecuteMainThread) that will call a function from the main thread in charge of the UI
Best regards
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte