wxThread::Create() : when?

ErgoSum ergo at sum.yp
Mon Oct 2 10:56:21 PDT 2006


On Sat, 30 Sep 2006 20:51:16 +0000, Aggro wrote:

> 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.

Thanks for the hint.

-- 
All bridge hands are equally likely, but some are more equally likely
than others.
		-- Alan Truscott







More information about the wx-users mailing list