#19181: wxThread example codes not compiled
----------------------------+------------------------
Reporter: dualband | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: documentation | Version: dev-latest
Resolution: | Keywords: wxThread
Blocked By: | Blocking:
Patch: 0 |
----------------------------+------------------------
Changes (by pb101):
* cc: pbfordev@… (added)
* status: new => confirmed
* version: 3.1.4 => dev-latest
Comment:
Looking at the code, I noticed more issues, for example:
1. I would not include "wxEVT_COMMAND_" in what is a name of a thread
event `wxEVT_COMMAND_MYTHREAD_COMPLETED`.
2. Missing semicolon in `MyThread` ctor.
3. `MyFrame::DoStartThread()` cannot be used in the event table since it
does not take `wxCommandEvent&` as an argument.
4. Why use `wxMessageOutputDebug().Printf()` instead of `wxLogDebug()`?
But IMO, this sample code may not the best overall, so I'd rather not
attempt to fix these individual issues as I feel it probably should be
significantly changed.
TBH, I am not even a fan of blending the GUI control and the thread
classes into one like this.
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19181#comment:1>