ThreadState() problems

Startbeitrag von Donald Montaine am 06.10.2016 06:00

I had a section of code that checked to make sure that threads were still running using threadstate(). I have found that not only does it report the thread as not running when it is actually working, but that it also can cause the main thread of the application to crash while leaving the supposedly non-working thread running. I removed the thread checking code and the system works just fine. Has anyone else had problems with threadstate()?

Antworten:

I having same issues . because of that sometime threadExecute() will show error thread is running , most time just crash

current solution is using variable to flag active/disable

von ccc2 - am 28.12.2016 07:55
even using variable I still hit with the exception. thread already exist but lesser that without using variable flag.

is there a definite method to to know thread is exist or not?

von ccc2 - am 28.12.2016 08:41
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.