Error running concurrent process and storing results in array

data pulverizer data.pulverizer at gmail.com
Wed May 6 06:24:00 UTC 2020


On Wednesday, 6 May 2020 at 05:44:47 UTC, drug wrote:
>
> proc is already a delegate, so &proc is a pointer to the 
> delegate, just pass a `proc` itself

Thanks done that but getting a range violation on z which was not 
there before.

```
core.exception.RangeError at onlineapp.d(3): Range violation
----------------
??:? _d_arrayboundsp [0x55de2d83a6b5]
onlineapp.d:3 void onlineapp.process(double, double, long, 
shared(double[])) [0x55de2d8234fd]
onlineapp.d:16 void onlineapp.main().__lambda1() [0x55de2d823658]
??:? void core.thread.osthread.Thread.run() [0x55de2d83bdf9]
??:? thread_entryPoint [0x55de2d85303d]
??:? [0x7fc1d6088668]
```



More information about the Digitalmars-d-learn mailing list