Bonjour,
Comment je peux récupérer l'état d'exécution d'un Thread en WinCE. :roll:
Merci.
Version imprimable
Bonjour,
Comment je peux récupérer l'état d'exécution d'un Thread en WinCE. :roll:
Merci.
La propriété ThreadState n'existe pas dans le Compact Framework, mais tu peux créer un champ bool qui indique l'état du thread.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 private bool _isRunning; private void LePointDEntreeDuThread() { try { _isRunning = true; // Le reste du code... } finally { _isRunning = false; } }
Ok merci Tomlev pour la réponse.
Je vais essayer ça