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.
- In need of some credit
- Posts: 5
- Joined: Tue Nov 14, 2006 10:19 pm
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 ?
- Knows some wx things
- Posts: 43
- Joined: Tue Jun 13, 2006 7:21 am
- Location: Denmark
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
- Posts: 11
- Joined: Wed Nov 08, 2006 9:28 am
- Location: Alphen aan den Rijn, Netherlands
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...