wxThread.Wait() generate error messages Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Nov 14, 2006 10:19 pm

wxThread.Wait() generate error messages

Post by kylenix » Fri Nov 17, 2006 1:10 am

I have two joinable threads

everything runs well until I do wxThread::Delete() and then wxThread::Wait()
the following error messages came out:
12:06:21: Error: Can not wait for thread termination (error 0: the operation completed successfully.)
12:06:21: Error: Couldn't terminate thread (error 0: the operation completed successfully.)
anything wrong ?

Peer Sommerlund
Knows some wx things
Knows some wx things
Posts: 43
Joined: Tue Jun 13, 2006 7:21 am
Location: Denmark

Post by Peer Sommerlund » Mon Nov 20, 2006 8:41 am

The documentation is not good enough here. :( The current implementation (at least wxMSW) requires you to do EITHER Delete() OR Wait().

That is, Delete includes an implicit Wait.

If you do both, you will be waiting on a non-existing object.

See bug 1225646 on SF

Earned a small fee
Earned a small fee
Posts: 11
Joined: Wed Nov 08, 2006 9:28 am
Location: Alphen aan den Rijn, Netherlands

Post by rve » Mon Nov 20, 2006 9:11 am

Had the same problem (see http://forums.wxwidgets.org/viewtopic.php?t=10873) and my conclusion was also the documentation was incorrect.

Could not find the bug report though...

Post Reply