wxThread::Create() : when?
Aggro
spammerdream at yahoo.com
Sat Sep 30 13:51:16 PDT 2006
ErgoSum wrote:
> Is there something wrong if I call Create()
> in the wxThread's constructor?
> What's the best place to call it?
Some people prefer having pretty much empty constructor (initializing
primitive datatypes is ok, but not doing anything complex or anything
that could fail) and creating Create() and Destroy() methods for the
class. This makes it easier to use the class, as it can be initialized
easily anywhere and created when wanted and even recreated if wanted.
More information about the wx-users
mailing list