'Access Violation Error' with parallel-foreach loop

ooyu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 18 17:46:29 PDT 2017


On Saturday, 18 March 2017 at 22:27:27 UTC, Vladimir Panteleev 
wrote:
> On Saturday, 18 March 2017 at 16:15:30 UTC, ooyu wrote:
>> I don't understand why got Access Violation error. :-(
>
> That looks like https://issues.dlang.org/show_bug.cgi?id=13727, 
> though I thought a fix was included in recent DMD Windows 
> versions.
>
> Try using std.file.write.

Aha! Thank you.
I try again using std.file.write and input ubyte[] data.

 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
auto rq = Request();
auto d = rq.get( std.uri.encode(web_url) );
std.file.write(path_hash[web_url], d.responseBody.data);
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
working pretty :-)


More information about the Digitalmars-d-learn mailing list