|
From: Dan S. <da...@si...> - 2006-08-05 01:11:29
|
At 8:18 PM +0200 8/3/06, Mattia Barbon wrote:
> There are various way to work around this; all involve keeping tracks
>of created objects (Wx::Colour instances in this case) and doing something
>special at clone time. This solves the problem once you decide what
>special action you want to take.
>
> Options:
>1 - the new thread is denied access to the parent thread objects
> (tried and works; you should not access wxThings from multiple
> threads anyway)
This would be the best option -- many GUIs don't like multiple
threads issuing gui requests. (IIRC various versions of Windows and
OS X have had this issue in the past, though I don't know about now)
--
Dan
--------------------------------------it's like this-------------------
Dan Sugalski even samurai
da...@si... have teddy bears and even
teddy bears get drunk
|