www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - curl : access violation

reply Vic <portovin yandex.ru> writes:
I am testing simple code in Geany (Windows 7, DMD compiler):

import std.stdio,std.net.curl;
void main()
{
// Return a char[] containing the content specified by an URL
auto content = get("dlang.org");
}

It compiled ok, but I get error after running exe file:
object.Error (0): Access Violation
Dec 22 2015
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 12/22/2015 03:10 AM, Vic wrote:
 I am testing simple code in Geany (Windows 7, DMD compiler):

 import std.stdio,std.net.curl;
 void main()
 {
 // Return a char[] containing the content specified by an URL
 auto content = get("dlang.org");
 }

 It compiled ok, but I get error after running exe file:
 object.Error (0): Access Violation
Your code works as is here: Linux, DMD64 D Compiler v2.069.0. Ali
Dec 22 2015