To share or not to share, this is the question.

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Mon Oct 17 03:59:03 PDT 2011


The point is not in the HWND itself, but in the fact, that a shared
class has a non-shared member. Isn't shared supposed to be transitive?

On Mon, Oct 17, 2011 at 2:55 PM, Kagamin <spam at here.lot> wrote:
> Gor Gyolchanyan Wrote:
>
>> My second question is: why the deuce isn't HWND member shared too
>> inside my class?
>
> It should not be shared. And you shouldn't ever pass HWND across threads.
>


More information about the Digitalmars-d mailing list