Member variables in method are null when called as delegate from thread
Tim
t.oliver at windowslive.com
Mon Jan 11 09:45:55 UTC 2021
On Monday, 11 January 2021 at 08:21:21 UTC, Arafel wrote:
> It's also possible that you'll have to make Foo itself
> `shared`, or at least convert your constructor into a `shared
> this ()` to get a shared instance that you can pass to a
> different thread, but I'm not sure how function pointers /
> delegates work across threads.
>
> Best,
>
> A.
Thanks for that. I'll give it a go and see how that fares
More information about the Digitalmars-d-learn
mailing list