Re: Curl HTTP segfault

2016-02-24 Thread Kagamin via Digitalmars-d-learn
Oops, no, looks like you can't put HTTP in a class, because it 
works with GC and is ref counted.


Re: Curl HTTP segfault

2016-02-24 Thread Kagamin via Digitalmars-d-learn

http://pastebin.com/JfPtGTD8 ?


Curl HTTP segfault

2016-02-24 Thread skilion via Digitalmars-d-learn

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