What wrong?

thedeemon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 15 00:51:27 PDT 2015


On Saturday, 2 May 2015 at 02:51:52 UTC, Fyodor Ustinov wrote:
> Simple code:
>
> http://pastebin.com/raw.php?i=7jVeMFXQ
>
> What I'm doing wrong?

Try using class instead of struct.
Last time I played with std.concurrency it used Variants to store 
the messages, so when something bigger than a little basic value 
or a reference, like a class object, is sent it behaves 
unpredictably: can crash or shit garbage. Trying to send structs 
larger than ~20 bytes usually caused problems.


More information about the Digitalmars-d-learn mailing list