Curl HTTP segfault

skilion via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 24 08:03:11 PST 2016


Hello everyone,
I have had this problem for a little while but I don't understand 
if I'm am not using correctly the HTTP struct, or if it is a 
library bug.

Hear is my code: http://pastebin.com/Pgx7bqum

I get a segfault on exit in the destructor calling 
std.net.curl.Curl.shutdown()

Workarounds that I found are :
- call http.shutdown() before the end of main
- make http static


More information about the Digitalmars-d-learn mailing list