How to call stop from parallel foreach
jfondren
julian.fondren at gmail.com
Fri Jun 25 15:40:22 UTC 2021
On Friday, 25 June 2021 at 15:16:30 UTC, jfondren wrote:
> I reckon that there's some other memory error and that the
> parallelism is unrelated.
@safe:
```
source/AI.d(83,23): Error: cannot take address of local `rData`
in `@safe` function `main`
source/analysisEngine.d(560,20): Error: cannot take address of
local `rd_flattened` in `@safe` function `add_missingPoints`
source/analysisEngine.d(344,5): Error: can only catch class
objects derived from `Exception` in `@safe` code, not
`core.exception.RangeError`
```
And then, about half complaints about @system dlib calls and
complaints about `void*` <-> `rawData[]*` casting
The RangeError catch likely does nothing with your compile flags.
Even if you don't intend to use @safe in the end, I'd bet that the
segfaults are due to what it's complaining about.
More information about the Digitalmars-d-learn
mailing list